Answers for "jquery exit function if element exists"

0

Is there an “exists” function for jQuery

if ($(selector).length)
Posted by: Guest on May-19-2020
-1

jQuery exists function

if ($("#myElementID").length){
   //I exist
}
Posted by: Guest on July-22-2019

Code answers related to "jquery exit function if element exists"

Code answers related to "Javascript"

Browse Popular Code Answers by Language