Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
104
rated 0 times [  106] [ 2]  / answers: 1 / hits: 16758  / 10 Years ago, wed, march 12, 2014, 12:00:00

I have three button are after clicking on one button,second has to access the click and then the third .when i click on the third button it should not work



<input type=button value=button id=one onclick=show() action=>
<input type=button value=button id=two onclick=show1()>
<input type=action value=button id=three>

<script>
function show{
}
</script>

More From » jquery

 Answers
8

Initially disable second and third button using :



<input type=button value=button id=two onclick=show1() disabled=disabled/>
<input type=action value=button id=three disabled=disabled/>


And Use this code :



function show()
{
document.getElementById('two').removeAttribute('disabled');
}
// And Same For Second Button Click
function show1()
{
document.getElementById('three').removeAttribute('disabled');
}

[#72034] Monday, March 10, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaylynkarinam

Total Points: 740
Total Questions: 103
Total Answers: 103

Location: Liechtenstein
Member since Wed, Dec 8, 2021
3 Years ago
;