我应该为gridview的jquery搜索框使用什么代码? [英] What code should I user for the jquery search box for gridview?

查看:61
本文介绍了我应该为gridview的jquery搜索框使用什么代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的gridview搜索boc。因此,如果你在TextBox(id = txtSearch)中编写一些东西,那么jquery函数应该在gridview中找到它(id = Gridview1)。我下载了jquery Code,但遗憾的是我不知道应该为它编写什么Code ....



I want a search boc for my gridview. So if you write somethind in the TextBox (id=txtSearch) then jquery function should find it in the gridview(id=Gridview1). I downloaded the jquery Code, but I have unfortunately no idea what Code should I write for it....

 <script src="../scripts/jquery.sieve.js"></script>
    <script type="text/javascript"></script>
   
<asp:TextBox ID="txtSearch" runat="server" />





我尝试了什么:



我开始使用



What I have tried:

I started with

<script>
        §("#txtSearch").search({
            
        })
    </script>





但我甚至不确定它是不是正确的开始。



but I am not even sure if ist the right beginning.

推荐答案

查阅文档



Sieve jQuery插件 [ ^ ]



插件会创建文本搜索框,您不会自己添加。
Consult the documentation

Sieve jQuery Plugin[^]

The plug-in creates the text search box, you don't add your own.


这篇关于我应该为gridview的jquery搜索框使用什么代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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