这就是我所拥有的:
您看到的所有数据都保存在本地存储中。我现在想要的是您可以搜索并且所有不等于搜索词的会话都消失了。
我做的最好的是什么?在localstorage中搜索还是在html中搜索?(jquery/javascript)
HTML 代码:
<div id="content_wrapper" class="">
<div id="mastersearch" class="container hide">
<input type="text" id="txtmastersearch">
<div id="searchresults">
</div>
</div>
<div id="content" style="height: 520px;">
<style>
h2 {
margin-bottom: 0;
}
ul {
margin-bottom: 0;
}
</style>
<div class="container">
<div class="row">
<div class="span12">
<input id="searchbox" class="span12" type="search" placeholder="Search...">
</div>
</div>
<div id="here" class="row">
<div class="span6"><h2 class="before-blocks">Wednesday 3 April 2013</h2><ul id="here" class="sessionlist blocks unstyled"><li class="contentblock has-thumb"><a href="http://test1niels.m.niels.tapcrowd.com/sessions/view/21115">0:00 - 0:00<span class="ellipsis name" style="width: 95%;" '=""><b>tweede</b></span><span class="ellipsis"><em></em></span></a></li></ul></div><div class="span6"><h2 class="before-blocks">Sunday 21 April 2013</h2><ul id="here" class="sessionlist blocks unstyled"><li class="contentblock has-thumb"><a href="http://test1niels.m.niels.tapcrowd.com/sessions/view/21117">12:00 - 15:00<span class="ellipsis name" style="width: 95%;" '=""><b>html5 session</b></span>
提前致谢!