so here i've page change password, before i've login page user logs in , has clicked browser's default functionality remember me or save password or prompts during login, , saves password!!
now when load change password partial view textbox id txtoldpassword filled default whereas textboxes txtnewpassword , txtconfirmpassword left empty!!
i load partialview below , tried clear txtoldpassword value!!
$('.menu').on('click',function(){ $('#body_data').load('/home/getchangepassword',function(){ $('#txtoldpassword').val(''); //tried clear value here }); }); but still value exists!!! now, don't want disable browser's default functionality want remove password automatically comes , stores in textbox txtoldpassword!!
try using autocomplete="off". not sure if every browser supports it, though. add field in change password view.
update:
you can try this.
$('#password').attr("autocomplete", "off"); settimeout('$("#password").val("");', 2000);