missyW
11-15-2010, 01:31 AM
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
<tr>
<th id="buttons" colspan="2">
<input type="button" value="Submit" onclick = "addBid()"/>
<input type="button" value="Remove Last Bid" onclick = "removeBid()"/>
</th>
</tr>
<tr>
<th id="buttons" colspan="2">
<input type="button" value="Submit" onclick = "addBid()"/>
<input type="button" value="Remove Last Bid" onclick = "removeBid()"/>
</th>
</tr>