In a given input
, I allow the user to enter the content he / she understands, but pressing the +
key will open a pop-up
(which is working) with data coming from the database. What I am trying to do now is: When I press the +
key I open the pop-up
, and at the same time I give backspace
to input
to delete this +
pressed in the input.
Input :
<input type="text" id="inputIdCliente" class="form-control input-sm" onkeypress = "openSearchCliente(event)"/></td>
Function that opens pop-up :
function openSearchCliente(e) {
var unicode = e.keyCode ? e.keyCode : e.charCode;
if (unicode == 43) {
popupSearchCliente.Show(); //Abre pop up
//Código para dar backspace na input (em falta)
}
}
backspace in input , I already looked for some things on the net and found no solution that replicates what I want to do ... < p>