Google has an autofill function on any website. I wonder if it is possible if you could recreate this on your own website (eg. Autofill when website is loading). I want this autofill function implemented on my website. The data it gets should be coming from a database. What would be the most efficient way to be doing this?
1条回答 默认 最新
- douyin7829 2017-06-10 20:42关注
The Value Attribute = What is physically in the input box
The Placeholder Attribute = An input hint, as soon as a user types in the input box it disapears.
Use them like:
<input type="text" value="<?=$data['username']>">
Or: ">
Also, disable autofill with
autocomplete="off"
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报