Click here to Skip to main content
16,013,605 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir,
I have created user list with multiple div in main div. When i click on div(user) i want to open 1 seperate div but if again m click on same div new div has been open so plz refer me how can i check dat existing div condition..?
Thanking you..
Posted

1 solution

please check this with

$("#id").indexof!=-1

or ==1 //will always true if exist
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900