this question has answer here:
- is there “exists” function jquery? 33 answers
- jquery how find if div specific id exists 10 answers
i working on simple program lets users add text when clicking on add text button. however, when user clicks again on "add text" button, new text area should not added instead present textarea should focused or if hidden, has made visible.
this should done using jquery.
any ideas ?
simply
if ($('#myid').length) { // div exists }
Comments
Post a Comment