Validation through javascript issue
I am working on simple project and it's for the institute Class project where i am learning php. i have to submit the project as soon as possible. But i am doing it different way then of i was supposed. Instead of validation message i want to use a picture or icon with Red error icon and Green yes icon as you can check in the attached picture. I am calling a function on submit button and if there is any error then using document.GetElementById('error').style.background= "none" and ="pic url". I am getting output but it's just for a second then disappeared. I have already attached the Screen Shot to get the full idea.
-
phpg -
Thanks
{{ DiscussionBoard.errors[6098796].message }} -
-
capitalalternatives -
Thanks
{{ DiscussionBoard.errors[6101901].message }} -
-
Mirque -
Thanks
{{ DiscussionBoard.errors[6101979].message }} -
-
Brad Hodge -
Thanks
SignatureTop Rated Upwork Freelancer with 250+ Jobs{{ DiscussionBoard.errors[6144957].message }} -