I have created a button.It will show a Yes/No confirmation box when clicks on it.I want to hide the button when user clicks on 'Yes' button.My code is here
<input type="button" name='hide_button' id='hide_button' value="Hide?"onClick="return confirm_hide();">
Javascript :
function confirm_hide(){
if(confirm('Do you wish to hide the button?'))
return true;
else return false;
}