Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

js validation

Options
  • 08-11-2006 9:33pm
    #1
    Registered Users Posts: 648 ✭✭✭


    Hi,

    im using the below js to ensure a user only enters numbers into a text field...
    however i want to allow teh user to be able to enter float numbers.. anyone know what to do to the code to make it accept a . ?

    onkeyup="this.onchange();" onchange='this.value=this.value.replace(/[^\d]*/gi,"");'


    Thanks


Comments

Advertisement