Turn off autocomplete in input fields

In some situations like in promotional code field on Cart page or username in Login page we may not want to show autocomplete below input field when we type some thing or double click on input fields. All we need to do is just add the autocomplete='off' attribute in input field.
After entering this code, input field will look like this

<input name='couponcode' type='text' autocomplete='off' />

That's it we have turnoff autocomplete in input field.

Comments

Popular posts from this blog

Send email from xampp localhost

Modify item price in cart after placing order using sales_quote_add_item

Convert long url to short url using tinyurl api