javascript - What does the jQuery function $('#myelement').is('*') do? -


what following code do:

$('#myelement').is('*')

what asterisk signify? since there 1 element, #myelement, can't understand point of using is(), checks if element matches set of elements?

this existential javascript.

$('#myelement').is('*') 

it fail whenever #myelement doesn't exist, , return true otherwise.


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -