Java script validation problem

Discussion in 'Programming' started by aaryan_wind, Jun 17, 2006.

  1. #1
    I want to give validation to form with javascript.
    and i have wrote code for that, everything is working fine but if i return true then the form should submit but if i return false then it should not.
    but for both time my form is submiting.

    I have tried all the ways but could'nt able to solve the problem

    If any one know the solution so pls let me know.

    aaryan
     
    aaryan_wind, Jun 17, 2006 IP
  2. anjanesh

    anjanesh Well-Known Member

    Messages:
    344
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Change your <input type="submit"...> tag to <input type="button"...>
     
    anjanesh, Jun 19, 2006 IP