193
回編集
Wiki admin (トーク | 投稿記録) 編集の要約なし |
Wiki admin (トーク | 投稿記録) 編集の要約なし |
||
2行目: | 2行目: | ||
<html> | <html> | ||
<input type="text" id="searchInput" placeholder="テーブル内検索..."> | <input type="text" id="searchInput" placeholder="テーブル内検索..."> | ||
<script type="text/javascript"> | |||
$(document).ready(function() { | |||
$("#searchInput").on("keyup", function() { | |||
var value = $(this).val().toLowerCase(); | |||
$("#yourTableID tr").filter(function() { | |||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) | |||
}); | |||
}); | |||
}); | |||
</script> | |||
</html> | </html> | ||
23行目: | 33行目: | ||
[[Category:エンタメジャンル]] | [[Category:エンタメジャンル]] | ||