Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery problem.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23927
    mohamedbitar
    Member

    hey everyone,

    i hope all is well.

    i’ve been stuck on something for the past 3 hours… for those experienced in JQuery, it should be very easy…

    if you try to run "http://pastebin.com/m51a040cd" … it will run smoothly BUT the problem is that if you fill the email in a wrong way, it will display the error but the page will still submit.

    i don’t want the AJAX code to run unless all fields are working properly… these fields are "email and checkbox"

    any help?

    thanks in advance…

    mb

    #53258
    Mr KiTT3N
    Member

    id try
    giving the submit button dIsabled="disabled" then,
    making a var valid = false and once it is true (everything checks out on the forum)
    remove the attr from the input button… but make sure you check the validation via php as well

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.