Tuesday 25 March 2014

How To Make A Text Field Required?

Making A Text Field Required is very easy and essential.

You Just need to add required anywhere between your form or textarea.

Here's a quick example



<form>

Email: <input type="email" name="email" required><BR>




Password: <input type="password" name="password" required<BR>

<input type="submit">

</Form>



You Can Do The Same Thing With The Textarea.

If User Won't Fill This Field Then It Will Show an error message Please fill out this field.

Follow Me On My Facebook Account

No comments:

Post a Comment