I am using codeigniter / grocerycrud, and when selecting a sort column, it remembers this order giving me the only option to re-sort the other direction (at least within the expiration date). I would like to create a button that deletes only the cookies relating to the sort. So far an example of a cookie would be...
hidden_sorting_4884b0e57a895f932a0a6f5657128eda
... and all of the cookies for sorting start with hidden_sorting_
so it makes sense to have a clear sorting button. Any ideas on if this is possible? A thorough research into built in features came up empty.
I can delete the full name with jQuery like so...
$.cookie("hidden_sorting_4884b0e57a895f932a0a6f5657128eda", null);
but having trouble with the prefix selection. In jQuery you can do things like...
$('input[products*="hidden_sorting_"]').val
if I was looking for input, but getting this in a cookie is what I need.