My first jQuery Plugin
<p>i recently started learning jQuery and created a plugin for <strong>preventing browser autofill/suggestion</strong>. Could you guys see and let me know if I can do it it any better?</p>

<p>Here's the code</p>

<pre><code>(function($){

    var sTime = new Date().getTime();
    $(function(){

        return $('form').each(function(i, frm){
            var inputs = $(frm +':input');
            $.each(inputs, function(){
                if($(this).attr('type') == 'text')
                    $(this).attr('name', $(this).attr('name') + "_" + sTime);
            });

            $(frm).bind('submit', function(){
                var inputs = $(frm +':input');
                $.each(inputs, function(){
                    if($(this).attr('type') == 'text')
                        $(this).attr('name', $(this).attr('name').replace('_'+sTime, ''));
                }); 
            })
        })
    })

})(jQuery);
</code></pre>
