I have a app that uses a textbox to search a table for a matching input. It uses the Keypress or keyup event to start the sorting. It works fine in a browser, but will not work on an android build. I'm sure that the function is getting loaded in, but the event is not firing. Here is my code:
// Write on keyup event of keyword input element
$( document ).ready(function() {
alert("Loaded Search!");
$("#search").keypress(function(){
console.log("Press!");
_this = this;
alert("Press")
$.each($("#table tbody").find("tr"), function() {
console.log($(this).text());
alert($(this).text());
if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) == -1)
$(this).hide();
else
$(this).show();
});
});
});
// Write on keyup event of keyword input element
$( document ).ready(function() {
alert("Loaded Search!");
$("#search").keypress(function(){
console.log("Press!");
_this = this;
alert("Press")
$.each($("#table tbody").find("tr"), function() {
console.log($(this).text());
alert($(this).text());
if($(this).text().toLowerCase().indexOf($(_this).val().toLowerCase()) == -1)
$(this).hide();
else
$(this).show();
});
});
});

