Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Displays logging with the specific text that is typed in the search bar
- $("#LoggingSearch").keyup(function () {
- //$("#LoggingInputs option:first").attr('selected','selected');
- //$('#LoggingDatePicker').val('');
- var value = this.value.toLowerCase().trim();
- $("table tr").each(function (index) {
- if (!index) return;
- $(this).find("td").each(function () {
- var id = $(this).text().toLowerCase().trim();
- var not_found = (id.indexOf(value) == -1);
- $(this).closest('tr').toggle(!not_found);
- return not_found;
- });
- });
- });
- //Displays logging with the specific date
- $('#LoggingDatePicker').change(function () {
- //$("#LoggingInputs option:first").attr('selected','selected');
- //$('#LoggingSearch').val('');
- var value = this.value.toLowerCase().trim();
- console.log(value);
- $("table tr").each(function (index) {
- if (!index) return;
- $(this).find("td").each(function () {
- var id = $(this).text().toLowerCase().trim();
- var not_found = (id.indexOf(value) == -1);
- $(this).closest('tr').toggle(!not_found);
- return not_found;
- });
- });
- });
- //Displays logging with the specific logging level which is selected
- $("#LoggingInputs").change(function() {
- //$('#LoggingDatePicker').val('');
- //$('#LoggingSearch').val('');
- var value = this.value.toLowerCase().trim();
- $("table tr").each(function (index) {
- if (!index) return;
- $(this).find("td").each(function () {
- var id = $(this).text().toLowerCase().trim();
- var not_found = (id.indexOf(value) == -1);
- $(this).closest('tr').toggle(!not_found);
- return not_found;
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement