首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用select选项值筛选表的Footable问题

使用select选项值筛选表的Footable问题
EN

Stack Overflow用户
提问于 2014-04-21 22:21:41
回答 1查看 1.6K关注 0票数 0

我使用的是Footable.js (加上所有其他js文件,您需要让它正常工作),而且看起来都很好,但是当我使用下拉(选择选项值)过滤器按列3过滤表时,在10个选择工作中只有7个。我检查了所有的拼写。不知道他们中的3个为什么不能像其他7一样工作和过滤表格。

搜索过滤器

代码语言:javascript
复制
Search: <input id="filter" type="text"/></div>
   <div id="degree-bar">Type of Degree: <select class="filter-status">
    <option></option>
    <option value="certificate">Certificate</option>
    <option value="minor">Minor</option>
    <option value="associate">Associate</option>
    <option value="bachelor's">Bachelor's</option>
    <option value="bachelor's/master's">Bachelor's/Master's</option>
    <option value="licensure">Licensures</option>
    <option value="occupational">Occupational endorsements</option>
    <option value="post-baccalaureate">Post-baccalaureate licensure</option>
    <option value="special">Special training programs</option>
    <option value="pre-professional">Pre-professional opportunities</option>
  </select>

表格的一部分:它将对学士、副学士和证书进行排序,但不是特殊的或职业的。

代码语言:javascript
复制
<tr>
      <td><a href="http://www.uaf.edu/catalog/current/programs/yupik_lang_culture.html">Yup'ik Language and Culture</a></td>
      <td><a href="http://www.uaf.edu/anlc/classes/">College of Liberal Arts</a></td>
      <td><span title="bachelor's">bachelor's</span></td>
    </tr>
     <tr>
      <td><a href="http://www.uaf.edu/catalog/current/programs/yupik_lang.html">Yup'ik Language Proficiency</a></td>
      <td><a href="http://www.uaf.edu/anlc/classes/">College of Liberal Arts</a></td>
      <td><span title="certificate">certificate</span>, <span title="associate">associate</span></td>
    </tr>
     <tr>
      <td><a href="http://www.uaf.edu/catalog/current/programs/alaska_law_enforcement.html">Law Enforcement Academy</a></td>
      <td><a href="http://www.ctc.uaf.edu/programs/lawacad/">College of Rural and Community Development</a></td>
      <td><span title="special">special training program</span></td>
    </tr>
     <tr>
      <td><a href="http://www.uaf.edu/catalog/current/programs/paramedic.html">Paramedic Academy</a></td>
      <td><a href="http://www.ctc.uaf.edu/programs/paramedic/">College of Rural and Community Development</a></td>
       <td><span title="special">special training program</span></td>
    </tr>
     <tr>
      <td><a href="http://www.uaf.edu/catalog/current/programs/wm_tech.html">Welding and Materials Technology</a></td>
      <td><a href="http://www.ctc.uaf.edu/programs/weld/">College of Rural and Community Development</a></td>
      <td><span title="special">special training program</span></td>
    </tr>
     <tr>
      <td><a href="http://www.uaf.edu/catalog/current/programs/admin_assist.html">Administrative Assistant</a></td>
      <td><a href="http://www.ctc.uaf.edu/programs/aaa/">College of Rural and Community Development</a></td>
      <td><span title="occupational">occupational endorsement</span></td>
    </tr>

要看到它的作用:网页完成

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-06-18 22:30:02

从您发布的代码来看,问题似乎是选项和span值的末尾是一个's‘。

选项值是:(请注意背书和节目结尾处的“s”)

代码语言:javascript
复制
<option value="occupational">Occupational endorsements</option>
<option value="special">Special training programs</option>

行中的span值类似于:(注意,在背书和程序的末尾没有s‘)。

代码语言:javascript
复制
<span title="special">occupational endorsement</span>
<span title="special">special training program</span>

这里有一个例子说明了这个问题:(我在两个地方都放了一个's‘) http://plnkr.co/edit/yCmyoJmFpkzcUplaMgVg

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23207047

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档