i would like to seek some help....my problem is my script restricts everything but numbers...i want to do is...i can type double numbers...like 1.232....i dont want to restrict the point(.)
...can anyone help me do that?
current code:
<input autocomplete="off" class="search_form_input" name="optA1" id="optA1" onkeypress="return isnumeric(event)" type="text" onchange="optTotal1()" />
script code:
<script type="application/javascript">
function isnumeric(evt)
{
var CharacterCode = (evt.which) ? evt.which : event.keyCode
if (CharacterCode > 31 && (CharacterCode < 48 || CharacterCode > 57))
return false;
return true;
}
</script>