Select Page

Tag: Form Validation

Allow alphabets and space only in text field

Allow alphabets and space only in text field

There is a way to use an inline script to do this: <input type=’text’ onkeypress=”return (event.charCode > 64 && event.charCode < 91) || (event.charCode > 96 && event.charCode < 123) || (event.charCode == 32)”...
How to allow only numeric digits in an input field?

How to allow only numeric digits in an input field?

Allowing only numeric digits in an input field can be useful in many web development projects, especially when working with forms and data input. HTML and JavaScript can be used to achieve this task easily. Here is the HTML code to create a simple input field:...

Parsley – one error at a time

Add attribute to inputs:data-parsley-errors-container=”#signinupform__errors”You can do it with a single line CSS code:.parsely-single-error .filled ~ .filled { display: none; }