validating the long form fields
iam developing a website and i have a long form in tat. i have to validate all the fields. the method im using for validation is given below
if(document.getElementById('user').value==''){
alert ('please enter the valid username');
}
how can we add more than one field by this method (is ter any method tat we can write in single line).
-
Roll3rBoX -
Thanks
{{ DiscussionBoard.errors[5197121].message }} -
-
rajprince -
Thanks - 1 reply
{{ DiscussionBoard.errors[5203579].message }}-
dutchguy -
Thanks
{{ DiscussionBoard.errors[5210624].message }} -
-
-
jerymac001 Banned{{ DiscussionBoard.errors[5219974].message }}-
ricky pounting -
Thanks
{{ DiscussionBoard.errors[5220228].message }} -
-