jquery - turning "autocomplete" to off for all forms (even ones not loaded yet)
Posted
by matthewsteiner
on Stack Overflow
See other posts from Stack Overflow
or by matthewsteiner
Published on 2010-05-18T20:04:50Z
Indexed on
2010/05/18
20:10 UTC
Read the original article
Hit count: 139
So, I've got this code:
$(document).ready(function(){
$('form').attr('autocomplete', 'off');
});
It works great for all forms already existing. The problem is, some forms of mine are in pop ups loaded throught ajax. This won't apply to them since they're "loaded" later.
I know there's a live() function - but that's only for attaching events. What's a good way to apply this to all forms?
Thanks.
© Stack Overflow or respective owner