Advertisement
afsarwebdev

jQuery if id exist

Dec 24th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. //jQuery if id exist then execute what I want
  2. if(document.getElementById("idName")) {
  3. //Execute the code
  4. };
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement