Jquery toggle input disabled attribute
- by Tommy Arnold
here is my code
$("#product1 :checkbox").click(function(){
$(this)
.closest('tr') // find the parent row
.find(":input[type='text']") // find text elements in that row
.attr('disabled',false).toggleClass('disabled') // enable them
.end() // go back to the row
.siblings() // get its siblings
.find(":input[type='text']") // find text elements in those rows
.attr('disabled',true).removeClass('disabled'); // disable them
});
how do i toggle .attr('disabled',false);
I cant seem to find it on google.