Rectangle 27 0

jquery check if list has element with same id?


$("#YourId").length >0 //this means id already exist.

You can check the length prop of selected objects by selecting it through id:

here are the ref links:

Note