I have a jquery mobile app that consist of a table. The table contains a time field and some numerical field. They stats are static as the do not change and i am able to filter the table by name or numbers.Check this Fiddle
Then i decided to increment the table values as displayed in this updated Fiddle.
Code for updating values
function UpdateFunction(){
$(".updateMeInt").each(function(index){
var cur = parseInt($(this).text(), 10);
$(this).text(cur + 1);
});
$(".updateMeTime").each(function(index){
var cur = $(this).text().split(":");
var sec = parseInt(cur[1], 10);
var min = parseInt(cur[0], 10);
sec = sec + 3;
if (sec >= 60){
sec = 0
min = min + 1;
}
$(this).text(pad(min) + ":" + pad(sec));
});
}
function pad(num) {
var s = "0" + num;
return s.substr(s.length-2);
}
However the issue is now i can't filter for the updated values.
Can someone please advice as to why this is and how to fix this issue?