jQuery jQuery check an element exist August 21, 2012 Pramod T P <script type=”text/javascript”> jQuery(document).ready(function() { if ($(“#divId”).length > 0){ // your code here } }); </scrip