Agile Development Practices suggest developers keep a solutions log. I think we can all benefit from a combined solutions log. As I encounter errors or problems I intend to record the solutions on this blog. Please feel to leave your comments, solutions and email me with your errors and solutions.
Apr 13, 2010
jQuery test whether object exists
In jQuery in order to test whether and object or element (div, span, p, etc.) exists:
if ( $('#myDiv').length ) {
// run some code if myDiv exists
}
No comments:
Post a Comment