When chrome automatically fills the form, jquery’s xxx.val() or js’s xxx.value will get the empty string “”. Tried Autocomplete = “off” but it didn’t work.
After Baidu tried the following method again. It still doesn’t work.
<input type="password" style="display:none"/> <! <input type="password"/>Copy the code
After checking the data again. \
<input type="password" style="width:0; height:0; float:left; visibility:hidden"/> <! <input type="password"/>Copy the code
Then I tried it. Ok ~