PHP ZCE mock test, interview preparation, daily lessons under chalk talk

Thursday, November 15, 2012

jQuery check if an element with id exists

How would you if an element with particular id exists on the page?


$('#element').length == 0; // no element found

No comments:

Post a Comment