I have the following URL:
products?feature_filters[]=&feature_filters[]=on&feature_filters[]=on
From this I need to get an array, something like this:
var feature_filters = [1, 2]
NOTE: As MightyPork has pointed out, this would be zero-based.. so I would need to reject 0, and keep 1, and 2.
I have successfully employed this example to get URL parameters when they are defined once. However I am not able to parse this set of parameters, created by my app.