preventDefault not a method for the jQuery object itself. This is an event method that is passed to this event handler.
In addition, the syntax of the shortcut syntax is incorrect (you forgot the brackets and tried to associate a jQuery object with a string), and you are without the extra two nested each es.
it is better:
$("table tbody tr td input").each(function () { $("label[for='" + this.id + "']").click(function (event) { event.preventDefault(); }); });
JSFiddle example: http://jsfiddle.net/s9D4n/
Perhaps even simpler, but admittedly not functionally equivalent:
$("label").click(function (event) { event.preventDefault(); });
source share