Hi,
I have a text box input where a user is supposed to enter certain details. Is there a way to restrict the number and type of characters entered in the text box to ensure all data entered is valid data and not junk data.
Regards,
Chris.
You can use javascript like the following in your application.js:
$("input").attr("maxlength", 4)
Here is a demo: http://jsfiddle.net/TmsXG/13/