181
rated 0 times
[
184]
[
3]
/ answers: 1 / hits: 106525
/ 12 Years ago, wed, june 20, 2012, 12:00:00
I have two different buttons on my page. I want them both to be enabled when the page loads, but when a user clicks one I would like to disable the other button. But if they click the other button, I would like that button to disabled as well while enabling the other disabled button. I have been able to disable the button onclick, but I'm having trouble getting the other button to re-enable . Here are the two buttons that I have on the page. They are not in a form, just on the page.
<button onclick=down7913.disabled=false type=submit class=positive name=up7913><img src=check.png alt=/></button>
<button onclick=this.disabled=true type=submit class=negative name=down7913><img src=cross.png alt=/></button>
More From » html