Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2002
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple OnSubmit Functions

    Hi,

    Sorry, this might be a sill question but i am only new to javascript. What I wanted to know was, is it possible to have more than one OnSubmit Function for a single form??? If so, how would i write it???

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 250 Times in 246 Posts
    if each of the functions returns true/false then:

    onsubmit="return function1() && function2()"

  • #3
    New Coder
    Join Date
    Sep 2002
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks alot Glenn. It works fine now.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •