Ecco il mio codice:Toggle ingresso disattivato attributo utilizzando jQuery
$("#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.
});
Come faccio toggle .attr('disabled',false);
?
Non riesco a trovarlo su Google.
Qual è il motivo per cui non è possibile utilizzare la proprietà disattivato del campo? '$ (" input "). get (0) .disabled = isFalse;' // http://jsfiddle.net/uAfhj/ – Shanimal
Ho trovato [DependsOn] (https://github.com/dstreet/dependsOn) plugin che potresti trovare utile – Ben