Ne0nE
11-23-2007, 04:22 PM
Hi, need a bit of help. I'm fairly new to javascript and I'm creating a simple website. I have a button as follows:
<input type="button" name="pizzatoppingchoice" value="Price"
OnClick= pizzatoppingcostfunction();>
I want to add another function to this button, I've tried:
<input type="button" name="pizzatoppingchoice" value="Price"
OnClick= pizzatoppingcostfunction(); toppingpricetotal();>
but this does not seem to work. One function displays text into a textbox, and another function displays text into a different textbox on the page. When I put one fucntion in, they both work, but together they don't. Also, by the end I will need about 15 similar functions on this button. I dont see why this isnt possible, and I bet its real simple but I just cant work it out :confused:
Thanks in advance.
<input type="button" name="pizzatoppingchoice" value="Price"
OnClick= pizzatoppingcostfunction();>
I want to add another function to this button, I've tried:
<input type="button" name="pizzatoppingchoice" value="Price"
OnClick= pizzatoppingcostfunction(); toppingpricetotal();>
but this does not seem to work. One function displays text into a textbox, and another function displays text into a different textbox on the page. When I put one fucntion in, they both work, but together they don't. Also, by the end I will need about 15 similar functions on this button. I dont see why this isnt possible, and I bet its real simple but I just cant work it out :confused:
Thanks in advance.