텍스트 상자 1이 true
인 경우 어떻게 textbox2를 비활성화합니까? 그것은 입력 된 값이 아닌 값을 설정합니다.설정 값과 같으면 텍스트 상자를 사용하지 않음
$('#valuetags').ready(function() {
if ($(this).val() == 'true') {
$('#quantitytotransfer').prop('disabled', true);
} else {
$('#quantitytotransfer').prop('disabled', false);
}
)};
<input name="valuetags" type="text" value="true" class="form-control" id="valuetags">
<input type="number" required class="form-control" name="quantitytotransfer" id="quantitytotransfer" maxlength="11">