Check whether an element exists or not?

Kmandapalli
Posted by Kmandapalli under jQuery category on | Points: 40 | Views : 647
if ( $( "#myDiv" ).length ) {

$( "#myDiv" ).show();

}

Comments or Responses

Login to post response