How would i validate the data type of a form input(of type text) element?
For example i want to have only floating point numbers when i submit the form.
<form method="post">
<input type="text" name="user-id"/>
<input type="submit"/>
</form>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Demo: http://jsfiddle.net/ULZaz/1/
Documentation