Hi Peter,
how can I get the value to my hidden input field from cklicked button:
<script type="text/javascript"> $(document).ready(function () { var theme = getTheme(); $("#jqxSubmitButton").jqxButton({ width: '150', height: '25'}); $("#E").jqxButtonGroup({ theme: theme, mode: 'default' }); $("#E").bind('buttonclick', function (event) { var clickedButton = event.args.button; $("#eventsLog").html("Clicked: " + clickedButton[0].id); $("#Erythromycin").value(clickedButton[0].id); }); }); </script></head><body> <form action="input007.php" method="POST"> <div id='E'> <button style="padding:4px 16px;" id="Res">R</button> <button style="padding:4px 16px;" id="Emed">M</button> <button style="padding:4px 16px;" id="Esens">S</button> </div> <input type="hidden" id ="Erythromycin" name="Erythromycin" value=""> <div> <input style='margin-top: 200px;' type="submit" name="Submit" id='jqxSubmitButton' /> </div> </form> <div id="eventsLog" style="margin-top: 10px;"> </div>
Where is my error? Please explain me.
Thanks,
Liquemin.