I have a button ("#btnchangepass"), the value of the button is "show". If i click the button the value must change in "hide", if I click the button another time the value must change as it was at the beginning in "show".
I wrote this code, but i don't know how I can get back the beginning value of the button. Can someone give me a hand?
The button is not hide, it's just the value of the button, the name displayed on the button is hide and show.
$('#btnshowhide').click(function(){
$("#btnshowhide").prop('value', 'hide');
});