Results 1 to 5 of 5
Thread: jQuery effect
- 01-10-2011, 05:27 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 4
- Rep Power
- 0
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
- 01-10-2011, 05:36 PM #2
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,
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-10-2011, 09:18 PM #3
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!
- 01-11-2011, 01:18 AM #4
Member
- Join Date
- Oct 2010
- Posts
- 4
- Rep Power
- 0
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 :)
- 01-11-2011, 02:36 PM #5
Similar Threads
-
Pulse effect on text
By Lingerz in forum AWT / SwingReplies: 2Last Post: 10-29-2010, 12:59 AM -
fading effect
By silversurfer2in in forum AWT / SwingReplies: 4Last Post: 06-11-2010, 03:23 PM -
Smoke Effect help
By jammyjamsticy in forum AWT / SwingReplies: 1Last Post: 04-20-2009, 12:34 PM -
Text effect: rotation and transparent
By Java Tip in forum java.awtReplies: 0Last Post: 06-21-2008, 08:49 PM -
shadow effect in swt-sash
By Jack in forum SWT / JFaceReplies: 2Last Post: 07-02-2007, 05:04 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks