Good afternoon,
I have the two inputs below:
<input type="text" id="txtEntrada" name="entrada" onkeyup="somenteNumeros(this);" >
<input type="text" id="txtSaida" name="saida" onkeyup="somenteNumeros(this);">
I would like that when clicking the Input Input Output would be disabled and vice versa. I'm doing the following:
<script>
$(document).ready(function(){
$("#txtEntrada").blur(function(){
if ($("#txtEntrada").val() !=''){
$('#txtSaida').attr("disabled", true);
}else{
$('#txtSaida').attr("disabled", false);
}
});
});
</script>
Anyone with a better suggestion?