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
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript submit buttom issue

    Hi! I am very new at javascript. An assignment that I have I need to add an event handler to the submit button to run the addBid() function when the button is clicked. This is what I have and it is not working. When I place an amount in the input field and press submit I get an error. I am assuming this is incorrect. Any help is appreciated Thanks

    Code:
    <tr>
                <th id="buttons" colspan="2">
                   <input type="button" value="Submit" onclick = "addBid()"/>
                   <input type="button" value="Remove Last Bid" onclick = "removeBid()"/>
                </th>
             </tr>

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,017
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    Why have you posted this here?

    See:- *** WARNING: Questions posted here will be deleted! ***.

    You will not get any reply in this forum which is intended to be used only to
    post a completed (working) script for showcasing/benefit of others.

    Before you post again please read the forum rules and posting guidelines.


    It is your responsibility to die() if necessary….. - PHP Manual


  •  

    Posting Permissions

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