That's a very complex solution. Is there a reason for this example that you haven't used any of the functionality of <button> tag over a <input type="submit" one?
Yes this is blooming annoying;
Here's what I did;
I pairred each button tag with a hidden input field in the following way:
';
';
And wrote this javascript function:
Then when the button is submited it updates the related hidden field to 1. You can then use the hidden field variables to find which button tag was pressed as it will have value of 1.
We should not have to do this but IE is obviously cr*p. Hope this helps
I removed all the images and such from between my button tags as would have made comment too large and ugly. If I didn't want all the button tag's functionality then I would have used the input tag as you suggest. Hope my code helps a bit.
Comment
That's a very complex solution. Is there a reason for this example that you haven't used any of the functionality of <button> tag over a <input type="submit" one?
Parent comment
Yes this is blooming annoying; Here's what I did; I pairred each button tag with a hidden input field in the following way: '; '; And wrote this javascript function: Then when the button is submited it updates the related hidden field to 1. You can then use the hidden field variables to find which button tag was pressed as it will have value of 1. We should not have to do this but IE is obviously cr*p. Hope this helps
Replies
I removed all the images and such from between my button tags as would have made comment too large and ugly. If I didn't want all the button tag's functionality then I would have used the input tag as you suggest. Hope my code helps a bit.