gpt4 book ai didi

javascript - 带有输入建议的搜索栏(动态占位符)

转载 作者:行者123 更新时间:2023-11-28 04:39:25 25 4
gpt4 key购买 nike

我正在寻找带有动态占位符的搜索栏,类似于 https://sentifi.com .

目前我正在使用 html Bootstrap 代码来创建一个简单的搜索栏:

          <div class="row">
<BR></BR>
<form action="" autocomplete="off" class="form-horizontal" method="post" accept-charset="utf-8">
<div class="input-group">
<input name="searchtext" value="" class="form-control" type="text" autofocus="autofocus">
<span class="input-group-btn">
<button type="button" class="btn btn-search btn-info" id="addressSearch">
<span class="glyphicon glyphicon-search"></span>
<span class="label-icon">Search</span>
</button>
</span>
</div>
</form>
</div>

在这方面的任何帮助/指导将不胜感激。

最佳答案

I visited the link you shared in the question and i observe it that you need to use jquery function to write in search bar like that website. You need to save the suggestions in string array and pass them in placeholder one by one with time gap.

关于javascript - 带有输入建议的搜索栏(动态占位符),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43909252/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com