[英]instant search jquery plugin
First of all this is how the script works: jsfiddle 首先,这是脚本的工作方式: jsfiddle
The 'searchList' setting specifies the content that will be searched. “ searchList”设置指定将要搜索的内容。 In this case it is searchable tr.
在这种情况下,它是可搜索的tr。 Finally, the 'searchItem' setting allows to dive in and specify an individual element to search.
最后,“ searchItem”设置允许深入并指定要搜索的单个元素。 In this case, I use 'td'.
在这种情况下,我使用“ td”。
I have a list of thumbnail images with some informations, what I want to do is to be able to search for "something" and then to show the image and the text related to that specific thumbnail. 我有一个缩略图列表,其中包含一些信息,我想要做的是能够搜索“内容”,然后显示与该特定缩略图相关的图像和文本。 Hope you understand what I'm trying to achieve.
希望您理解我正在努力实现的目标。
Out on a limb, but your selector for searchList
looks wrong: searchList
,但您的searchList
选择器看起来错误:
'searchList' : '.imgscontainer portfolio-v6-items ',
Surely that second class should have a dot before it, and they're on the same element, so no space: 当然,第二个类应该在它前面有一个点,并且它们在同一元素上,所以没有空格:
class="imgscontainer portfolio-v6-items"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.