Just doesnt work[JQuery]

Status
Not open for further replies.
8 comments
Your using BitWise oeprators you plonka!

& = Bitwise
&& = Logical "and" operator

PHP:
if(validateFirstName() & validateLastName() & validateEmail() & validatePhone())

Becomes:

PHP:
if(validateFirstName() && validateLastName() && validateEmail() && validatePhone())

Also, REMOVE the (jQuery) at the end

PHP:
$(document).ready(function(){
    //Code Here
})
 
Did that, still doesnt work :\
What's wierd is that I got this off a tutorial and modified it slightly. Ive got the source files from the tutorial and they work fine :\
 
Thanks for the link i'll try it out
edit:fixed the errors, still doesnt work :\

edit2: I've got the form only appearing when someome clicks a link, in a lightbox type thing. The div for it looks like this:
Code:
 <div id="newbox" style="display:none;">
Note the display:none; It basically stops it from showing unless you click the link, in which case it shows it lightbox style. If i remove that display:none; it works fine normally, but still doesn't work in the lightbox :\ I'm assuming my lightbox script has problems
 
Status
Not open for further replies.
Back
Top