W3D Problems
world wide web development problems asp net php html xhtml css javascript jquery w3dproblems
Friday, March 30, 2012
How to check whether an DOM element exists using JQuery(JS)
If you every want to check whether an element exists using JavaScript or jQuery, just use this snippet
if
(
$
(
"selector").
length ) {
// rest goes here
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment