Form Validation using JavaScript

后端 未结 5 1227
-上瘾入骨i
-上瘾入骨i 2021-01-25 02:44

I\'m trying to validate a form using JavaScript but i\'m a bit stuck on displaying a message next to the field to say that \"This field is required\". How do I go about doing th

5条回答
  •  情话喂你
    2021-01-25 03:28

    I think you need to take a look at this http://www.w3schools.com/js/js_form_validation.asp for the validation thing then take the ideas you have here to display your message.

提交回复
热议问题