Revision: 28458
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 8, 2010 17:29 by omerta83
Initial Code
/*The .length property in jQuery returns the length or number of elements inside an array or the string length. If you want to check the existence of the element, just check if the returned value of length is zero:*/ if ($(selector).length) { //your code here }
Initial URL
Initial Description
Initial Title
How to check some element for existing
Initial Tags
javascript, jquery
Initial Language
JavaScript