开发者

Ruby on Rails, autocomplete => "off" in text input fields, not working on Firefox

开发者 https://www.devze.com 2022-12-28 23:27 出处:网络
I have both a text_field and a text_area in Rails, and I want to disable the browser\'s auto-complete. Setti开发者_StackOverflowng the attribute in either the text_field, text_area, or in the form its

I have both a text_field and a text_area in Rails, and I want to disable the browser's auto-complete. Setti开发者_StackOverflowng the attribute in either the text_field, text_area, or in the form itself, doesn't seem to make the browser stop trying to auto-complete. This is for Firefox 3.6.3 on OS X. Maybe it's more a browser issue than a RoR issue.

Thanks!


What's the view source on your page look like? I tried this in FF 3.6.3 OSX and it worked.

<html>
<head>
</head>
<body>
<form>
  <input type="text" name="name" autocomplete="off"/>
</form>
</body>
</html>

Taking out the autocomplete made it autocomplete. Maybe you have a plugin overriding the default behavior.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号