Code: Select all
<script>
function removeIt(obj)
{
obj.value = obj.value.replace(/(\D|^\.)/,'');
}
</script>so:
$53 would change to 53
and:
$53.00 would change to 53.00
etc.
Moderator: General Moderators
Code: Select all
<script>
function removeIt(obj)
{
obj.value = obj.value.replace(/(\D|^\.)/,'');
}
</script>Code: Select all
/[^\d\.]/Code: Select all
/[^0-9\.]/