I'm not aware of using / instead of " in that way.
I would try running your page in FireFox and check the Error Console for JS errors. There must be something happening with it.
I tested the code I posted and it worked fine for me.
I'm not aware of using / instead of " in that way.
I would try running your page in FireFox and check the Error Console for JS errors. There must be something happening with it.
I tested the code I posted and it worked fine for me.
Thanks RR...but I don't have FireFox, only IE.
I found out the following link and for some reason this one works with the " but like this: Validate email adresses using regular expressions
weird...lol.
This is the site where I got the original line: Javascript Tutorial - FormCode:var emailExp = new RegExp("^[a-z0-9_\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,4})$");
yep...seems to work with the line in above post.
when i leave EQ empty, i get prompt...yay!
when i leave EQdesc empty, i get prompt...yay!
when i leave email empty, i get prompt...yay!
when i enter rebelle in email, i get prompt...yay!
when i enter rebelle@nothing, i get prompt...yay!
when i enter rebelle@yahoo.com, i get to prompt and no errors!! yay! yay!
w00t!
Bookmarks