Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
98
rated 0 times [  100] [ 2]  / answers: 1 / hits: 20922  / 12 Years ago, tue, december 11, 2012, 12:00:00

How do I check if a table contains a row with a specific id using jQuery?


More From » jquery

 Answers
11

Just



if($('#rowID').length){

}


should be sufficient..



ID's on a page are unique.. So this check should do..


[#81483] Monday, December 10, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
billosvaldor

Total Points: 601
Total Questions: 113
Total Answers: 113

Location: Iceland
Member since Sat, Sep 17, 2022
2 Years ago
;