Need to restrict entering alphabets and special characters in a textbox using jquery. Need to enter only numbers. How to implement using keypress() functionality in jquery for a text box in jsf?.
Code :
<table>
<tr>
<h:inputlabel value="Actual"></h:inputlabel>
<td>
<h:inputtext id="Actual" styleClass="input-tex" value="#bean.customer"></h:inputtext>
<td>
</tr>
<table>
Any help is appreciated.