mindbenderz
12-10-2008, 02:50 PM
I have a button on 1 of my site pages that I wish to have multiple onclick actions. It is a bid button for an auction type page. I want to be able to click it and not only have it place the bid, but play a sound. the sound plays fine on a seperate standalone button, but I need to have both functions work on the same button. This is what the code for the button looks like with just the bid function.
<input type="button" name="bid" id="bid" value="Bid Now" onclick="javascript:return start_bid();" />
and this is the sound button by itself
<input type="button" name="sound" id="sound" value="play sound" onclick="playSound(0);" />
I have tried
<input type="button" name="bid" id="bid" value="Bid Now" onclick="javascript:return start_bid();playSound(0);" />
but it didnt produce the sound when I clicked the button. thanks for your help
<input type="button" name="bid" id="bid" value="Bid Now" onclick="javascript:return start_bid();" />
and this is the sound button by itself
<input type="button" name="sound" id="sound" value="play sound" onclick="playSound(0);" />
I have tried
<input type="button" name="bid" id="bid" value="Bid Now" onclick="javascript:return start_bid();playSound(0);" />
but it didnt produce the sound when I clicked the button. thanks for your help