I need a validation script .
I have a textfield for amount.
I want user can not type more than 100 in this textfield…also user are not allowed to type more than two decimal.
so user can type from 0 to 99.99
Could you please suggest a solution.
I am looking for a concise easy javascript or jquery solution which could help…
Almost everyone is using browsers that support HTML 5 now. If you are not using it then you will be one of the minority where you are relying on the server side validation. For most people whose browser is using HTML 5 the pattern attribute will pick it up before sending it. More people’s browsers support HTML 5 than have JavaScript turned on so a JavaScript solution instead of an HTML one will just mean more people don’t get it validated in their browser.