You can use jQuery to see if an element exists by checking if the length of the jQuery object is > zero.
var exists = $('.your-selector-here').length > 0;
Probably the shortest snippet so far.
You can use jQuery to see if an element exists by checking if the length of the jQuery object is > zero.
var exists = $('.your-selector-here').length > 0;
Probably the shortest snippet so far.
For further actions, you may consider blocking this person and/or reporting abuse
Diego Palacios Lepore -
IHesamI -
Njabulo Majozi -
Dipak Ahirav -
Top comments (0)