How to check if div exists using jquery ?

    You can check if div exists on the web page by checking its length via jquery if ( $("#mydiv").length ) { //Do appropriate action here. }
    5
    Average: 5 (1 vote)