多键值查询搜索输入框 [英] Multiple Key Value Query Search Input Box

查看:162
本文介绍了多键值查询搜索输入框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定要搜索的内容或确切的起始位置,但是我试图查看是否可以仅使用jQuery,JS,HTML和CSS为多个GET查询提供自定义搜索框.

I'm not quite sure exactly what to search for or where exactly to start, but I'm trying to see if it's possible to have a customized search box for multiple GET queries simply using jQuery, JS, HTML and CSS.

用户首先输入会提示红色框显示(键)的内容,并且会自动使用列出的默认值(给定键入的前几个字符)自动填充.然后,在按Enter或Tab时,将允许他们填写答案灰色框(值).然后,他们可以选择提交或输入另一个键/值.

The user would first type in something which will prompt the red box to show (key) and it would autofill with a listed default given the first few characters they typed. Then upon pressing enter or tab, they would be allowed to fill in the answer gray box (value). Then after, they can either choose to submit or put in another key / value.

是否有已经实现了此功能的jQuery库,甚至有可能吗?我考虑过将输入框放在输入搜索框内,并使用jQuery根据输入的内容隐藏和显示它们,但这是最好的方法吗?

Is there a jQuery library that already has this implemented, and is this even possible? I thought about putting input boxes inside the input search box and using jQuery to hide and show them depending on what they type, but is that the best way?

我想在没有像Angular和React这样的全面框架/库的情况下执行此操作.

I'd like to do this without comprehensive framework / library like Angular and React.

提前谢谢!

推荐答案

您可以查看选择.

这篇关于多键值查询搜索输入框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆