capellone2
Programmer
Hello,
I have in jsp
I want to set the "newCommand" property differently for each pressed button. For instance, start() would be like
How can i do that?
Thank you.
I have in jsp
Code:
<input type="hidden" name="newCommand" value="myvalue"/>
<button type="button" onclick="start();">
<img src="images/common/button/play-button-th.png" alt="Start" />
</button>
<button type="button" onclick="stop();">
<img src="images/common/button/pause-button-th.png" alt="Pause" />
</button>
<button type="button" onclick="pause();">
<img src="images/common/button/stop-button-th.png" alt="Stop" />
</button>
I want to set the "newCommand" property differently for each pressed button. For instance, start() would be like
Code:
start()
{
< ?? set newComamnd="START" >
submit form
}
How can i do that?
Thank you.