Load value in text box with javascript

0

You see, I have the following situation: I have a text box to which I must assign a value in case I find something in the database, in this text box I already have two events that are onkeypress () and onfocusout (); with these events what is valid is that only the keyboard user has letters and numbers (onkeypress ()), the other event is to validate in "real time" if the typed user is available (onfocusout ()). I can not make it load (if the user was previously registered and by "X" reason I cancel that account) your previous user in the text box.

I leave my code:

<input type=text value="<%=request.getAttribute("aliasCliente")!=null?(String)request.getAttribute("aliasCliente"):""%>" name="aliasCliente" size="25" class="inputCaja" onkeypress="return soloNumerosLetras(event)" maxlength="20" onfocusout="verificaDisponibilidad)"/>

To emphasize that it is in struts 1.2.

I hope you explained.

I have already achieved that the text box gets the value of the client if it was ever registered, but now every time I give it check availability it does it well, but the text box leaves it empty.

Fix it by uploading the customer alias to a previous step in session.

    
asked by 5frags 04.05.2018 в 00:58
source

0 answers