作者:熙8778_565 | 来源:互联网 | 2023-01-31 11:54
1> 小智..:
删除内容时,它不会变成null,而是""
。您应该将其添加到您的条件中,并使用else
:
function soluong_nhap()
{
$('#customers2').find('tr').click( function(){
var row = $(this).find('#number').val();
if (row === null || row === "")
{
$('#texth').prop("disabled", true);
}
else
{
$('#texth').prop("disabled", false);
}
});
}