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