为列表创建搜索框(BasicTable视图)-仅搜索该partilcar列表 [英] Creating a search box for a list (BasicTable View) - Only search that partilcar list

查看:69
本文介绍了为列表创建搜索框(BasicTable视图)-仅搜索该partilcar列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为基本表格"视图样式的列表创建搜索框?最好使用内容编辑器的Web部件或脚本编辑器.

How do you create a search box for a list in Basic Table view style? Preferably using the content editor web part or script editor.

推荐答案

您可以尝试以下方法:

<p>
        Filter the list: <input id="filterTxtField" type="text" tabindex="1" />
    </p>

    <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="/_layouts/15/js/jquery.quicksearch.js"></script>

    <script type="text/javascript">


(document).ready(function(){
(document).ready(function () {


('input#filterTxtField ').keyup(功能(e){ if(e.keyCode == 13){
('input#filterTxtField').keyup(function (e) { if (e.keyCode == 13) {


这篇关于为列表创建搜索框(BasicTable视图)-仅搜索该partilcar列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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