I Have a toggle button on browser
I will be toggling the button with the following code
function toggle(){
if (window.button1.value == 'Automatic')
{
window.button1.value = 'Manual';
}
else
{
window.button1.value = 'Automatic';
}
}
I have also next url ..
The above button default value = 'Automatic'..Everything working fine but when i say next url..the button value also changing to automatic which is default and which should not happen untill i press the toggle to change value..
Can anybody help me with a snippet..How can I keep the value of the button as it is..untill i press the button..i.e.if i say next url..the value should remain Manual only..as it is..
Thanks
I will be toggling the button with the following code
function toggle(){
if (window.button1.value == 'Automatic')
{
window.button1.value = 'Manual';
}
else
{
window.button1.value = 'Automatic';
}
}
I have also next url ..
The above button default value = 'Automatic'..Everything working fine but when i say next url..the button value also changing to automatic which is default and which should not happen untill i press the toggle to change value..
Can anybody help me with a snippet..How can I keep the value of the button as it is..untill i press the button..i.e.if i say next url..the value should remain Manual only..as it is..
Thanks