Tuesday, 5 June 2012

Find an object using its attribute with jQuery

object=$('obj[attr="value"]');

ex: var obj = $('a[href="#"]');

No comments:

Post a Comment