So here I've a page to change password, but before that I've Login page
where user logs in and say he has clicked browser's default functionality Remember me
or Save Password
or anything it prompts during login, and saves the password!!
Now when I load my change password
partial view the textbox say with ID txtOldPassword
will be filled by default whereas textboxes txtNewPassword
and txtConfirmPassword
will be left empty!!
I load my PartialView
as below and tried to clear the txtOldPassword
value!!
$('.menu').on('click',function(){
$('#body_data').load('/Home/GetChangePassword',function(){
$('#txtOldPassword').val(''); //Tried to clear the value here
});
});
But still the value exists!!! Now, I don't want to disable the browser's default functionality but I just want to remove the password that automatically comes and stores in textbox txtOldPassword
!!