<div class="form-group">
<label for="inputEmail">Part Number:</label>
<input class="form-control" id="inputEmail" type="text" name="partnum" value="<?php echo $partnum; ?>" style="width: 400px;" required>
</div>
<div class="form-group">
<label for="inputEmail">Serial Number:</label>
<input class="form-control" id="inputEmail" type="text" name="serialnum" value="<?php echo $serialnum; ?>" style="width: 400px;" required>
</div>
答案 0 :(得分:1)
function myFunction() {
document.getElementById("tobedisabled").disabled = true;
}
&#13;
<input type="text" onchange = "myFunction()" />
<input type="text" id="tobedisabled" />
&#13;