I have a table structure like this:
City | %age | Year
NY | 57% - 95% | 2011
NY | 30% - 65% | 2012
FL | 50% - 60% | 2012
AL | 10% - 50% | 2014
I am able to search in the text using this code:
jQuery('#tblSearch tr td.td5:containsNoCase(\'' + jQuery('#txtSearch').val() + '\')').parent().show();
jQuery.expr[":"].containsNoCase = function (el, i, m) {
var search = m[3];
if (!search)
return false;
return eval("/" + search + "/i").test($(el).text());
};
But I do not have any idea how can I search ranges like if user want to search for 60% then How can I get first three result?
Thanks in advance! Please refer if possible duplicate. Thanks.