html select option disabled selected
<option selected disabled>Choose Tagging</option>
html select option disabled selected
<option selected disabled>Choose Tagging</option>
Disable input if select option checked
<select id="select">
<option value="">select this </option>
<option> 1 </option>
<option> 2 </option>
<option> 3 </option>
</select>
<input disabled type="text" id="p_amount">
<input disabled type="text" id="pay_full">
$("#select").change(function(){
if ($(this).val() !== "") {
$("#p_amount").prop('disabled', false);
$("#pay_full").prop('disabled', false);
}
else {
$("#p_amount").prop('disabled', true);
$("#pay_full").prop('disabled', true);
//i means this value of select_option is empty
}
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us