How will i disable textbox2 if the textbox 1 is equal to true
. it's not inputted value its set value.
$('#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">