
I have doubt in jsp file.
In a jsp file, there should be two buttons. One is start and other is stop.
When we click on start then only stop should be enabled. Other wise it should be disabled.
When we click on start button, stop should be enabled and start should be disabled.
When we click on stop button, start should be enabled and stop should be disabled. Please can you help me with the code.

<html>
<script>
function check1()
{
document.form.b1.disabled=true;
document.form.b2.disabled=false;
}
function check2()
{
document.form.b2.disabled=true;
document.form.b1.disabled=false;
}
</script>
<form name="form">
<pre>
Name: <input type="text" >
Address: <input type="text">
<input type="button" name="b1" value="Start" onclick="check1();"> <input type="button" name="b2" value="stop" onclick="check2();">
</pre>
</form>
</html>

thankq for giving the answer
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.