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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2003
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question calling two functions at one

    can't seem to get this to be the proper syntax... any suggestions?

    onsubmit="return BeforeSubmit();return submitCheck()"

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you need BeforeSubmit() to be able to stop the form submission by return a value of false? If so, try

    onsubmit="return(BeforeSubmit() && submitCheck())"

    if not, use:

    onsubmit="BeforeSubmit();return submitCheck()"


  •  

    Posting Permissions

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