I want to disable Login time button. When again click on Logout time button that time i want enable the lo-gin button. If page refresh i won't enable login time button(when he already print login time). how can do this through jquery ajax. or Server side. I tried through java script but when i refresh the page again it's going to work.
function submitForm(form) {
alert("submitted");
}
$('#logintime').click(function(e) {
this.disabled = true;
});
$('#form').submit(function(e) {
submitForm(this);
});
But i need when i click on log Out time then only i want enable the login time button.