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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -