For the reference. In general javascript we can check for the existence of an element using the method below: if(document.getElementById(‘element_id’)) { //element exists } else { //element does not exist }
DevArticles – Tips, Tricks, References and Bookmarks
For the reference. In general javascript we can check for the existence of an element using the method below: if(document.getElementById(‘element_id’)) { //element exists } else { //element does not exist }