dev3
This commit is contained in:
18
ZpcBulletinBoard/wwwroot/js/boards/index.js
Normal file
18
ZpcBulletinBoard/wwwroot/js/boards/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
$(function(){
|
||||
$('#inpSearchBoard').on('keyup', function(){
|
||||
searchBoards();
|
||||
});
|
||||
});
|
||||
|
||||
function searchBoards(){
|
||||
let value = $('#inpSearchBoard').val().toLowerCase();
|
||||
|
||||
$("table > tbody > tr").each(function(i, e) {
|
||||
let boardText = $(e).find('td:first').text().toLowerCase();
|
||||
if (boardText.indexOf(value) < 0){
|
||||
$(e).hide();
|
||||
} else {
|
||||
$(e).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
0
ZpcBulletinBoard/wwwroot/js/boards/view.js
Normal file
0
ZpcBulletinBoard/wwwroot/js/boards/view.js
Normal file
Reference in New Issue
Block a user