Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Validation through javascript issue (https://www.warriorforum.com/programming/585385-validation-through-javascript-issue.html)

fredrikrob 22nd April 2012 11:25 AM

Validation through javascript issue
 
1 Attachment(s)
Hi,

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.
http://www.warriorforum.com/attachme...0&d=1335115503

phpg 22nd April 2012 12:08 PM

Re: Validation through javascript issue
 
Unfortunately your screenshot doesn't help much, you'd better post your code here

capitalalternatives 22nd April 2012 11:57 PM

Re: Validation through javascript issue
 
use javascript

Mirque 23rd April 2012 12:19 AM

Re: Validation through javascript issue
 
Can we have your source javascript code, to help you and to know witch party of your code dont run ?

Best,

Brad Hodge 29th April 2012 07:30 AM

Re: Validation through javascript issue
 
From what i understand you want the onsubmit handler to show a green or red alert. Is that it?


All times are GMT -6. The time now is 05:13 PM.