ExpertRefresh

Element / Check if exists  

1) Check if element exists.







<script src=""></script> <div id='mydiv'>My div</div> <script> if ($("#mydiv").length > 0) { $("#mydiv").html("My div exists"); } </script>


References



n/a