I found out about jQuery Lint in the Firebug plugin. However its results are confusing and very hard to try and satisfy. I get hundreds of errors saying jQuery (...) called incorrectly
.
For example this line comes up with that warning. What am i doing wrong here?
$('#myTextBox').val(someValue);
And when i try to remove all the rows from a tbody that has no rows it throws an error that stops all javascript on the page. It says no elements were found with that selector and then that remove is not a function.
$('#myTbody > tr').remove();
Do i really have to add extra code to work around this? How is jQuery Lint meant to be helpful?