-
jQuery effect
Hi! I'm not sure this is the right place to ask, but I hope it's ok. I have meda a function using javascript in my html file to validate a simple form. Looks like this:
function verify(form) {
var letExp = /^[0-9]+$/;
if (contact.name.value == "" ||
contact.name.value.match(letExp) ||
contact.message.value == ""||
contact.mail.value == "" ||
contact.mail.value.indexOf("@") == -1 ||
contact.mail.value.indexOf(".") == -1){
alert("Make sure all fields are filled out correctly.");
return false;
}
else{
alert("Thanks for your message!");
return true;
}
}
What I want to do is use a jQuery effect, like fadeIn for example, on the last alert message. I've tried doing this a few different ways, but nothing seems to work. I can't find anything that works or that I understand on google either. I was wondering if anyone could help me out. Maybe give me an example or something.
Thanks
-
I am not much into jQuery stuff, but these are couple of links I found that may prove useful.
Fade In Effect
KeyCSS Fade In
Hope that helps,
Goldest
-
Also, this is a java forum not a javascript forum (they are very different). You might get more help on another forum related to javascript specifically. Good luck!
-
Yeah I had a feeling this was not the right forum, but you're so helpful here I was hoping someone knew what I was talking about.
And thank you so much for the links, they made it much clearer :)
-