jQuery check an element exist

<script type=”text/javascript”>
jQuery(document).ready(function() {
if ($(“#divId”).length > 0){
// your code here
}
});
</scrip

Share