Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

How to Disable AutoComplete Form using jQuery

jquery html
How to Disable AutoComplete Form using jQuery

Autocomplete attribute of HTML is use to fetch previous input values in input fields. Almost all browsers supports autocomplete attribute, by default this attribute is “on” in html, so in this tutorial i will show How to disable autocomplete form using jquery. You may also like How to Autocomplete Textbox Using jQuery,PHP and MySQL and Live Search in php with Ajax and Mysql

HTML and jQuery Code

        <script src=""></script>
        <script type="text/javascript">
            function disable_autocomplete()
                $("#form1").attr('autocomplete', 'off');
        <div id="wrapper">

            <form id="form1">
                <input type="text" name="text" placeholder="Enter Text">
                <input type="submit" value="Submit">
                <input type="button" value="Disable AutoComplete" onclick="disable_autocomplete();">


To Disable Particular Text Field
<input type="text" autocomplete="off">


Html code work in comment box

Related Post