How to check if a table has a row with a specific id jquery

asp.net-mvc-3, html, javascript, jquery, json

Solution

Just

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

  }

should be sufficient..

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

Problem

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

Original source