14
May
Learn how to check ID exists using JQuery?
If you want to check some element ID exist, then you can use following single jQuery line.
if ($('#input-id').length) { // do something }
By admin|Computer, Internet, JavaScript, jQuery
If you want to check some element ID exist, then you can use following single jQuery line.
if ($('#input-id').length) { // do something }