jquery - filter by letter in datatables not working -
i using datatables show pricelist, filter prices letter. problem have when click on letter shud pass proccesing file(bronze.fnreloadajax) not. instead records because href empty
$(".whitelinks a").click(function(event) { event.preventdefault(); $("a").removeclass("active"); $(this).addclass("active"); link = $(this).attr("href"); href = link.substring(1); bronze.fnreloadajax('price_list/plan_bronze.php?selection='+href); });
if link single letter, href = link.substring(1)
removes first letter of link. means blank.
Comments
Post a Comment