totally a newbie…
I just want to know how to dynamically disable an input field when the second input field is filled
eg:
<td><input type="text" name="num-input1" id="dis_rm" value=""></input></td>
<td><input type="text" name="num-input2" id="dis_per" value="" ></input></td>
pls… any links and hints will do…
You simply need to give it a disabled property:
you can use the on change event to see if one of them is filled:
so if the first one is filled, the second one will be disabled