routes filter js
This commit is contained in:
parent
89b8c8b3dc
commit
3a7813b785
|
@ -8,13 +8,13 @@
|
|||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('#searchRoutes').change(function() {
|
||||
var val = $(this).val();
|
||||
var val = $(this).val().toLowerCase();
|
||||
$('.route').each(function() {
|
||||
var txt = $(this).text();
|
||||
var txt = $(this).text().toLowerCase();
|
||||
if (txt.indexOf(val) != -1) {
|
||||
$('.route').show();
|
||||
$(this).show();
|
||||
} else {
|
||||
$('.route').hide();
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user