試試這個
$('.dropdown').change(function()
{
//include condition to determine "if dropdown is selected to be 1"
var $row = $(this).parents('tr:first'); //find the row in which this dropdown is
if($(this).val() == 1)
{
$row.find('.textbox:first').attr('disabled','disabled'); //assuming you put a class on your textbox
//$row.find('.textbox:first').attr('disabled','true');
//$row.find('.textbox:first').prop('disabled','true');
}
else
$row.find('.textbox:first').attr('enabled','true'); //assuming you put a class on your textbox
});
發佈您的中繼器標記。 –