joined:Jan 24, 2012
I want to remove a part of the value from the parameter 'Breed' in an URL.
The value of the parameter Breed can be '49,42,7,33,35,5'.
Now I have checkboxes who represents each number. Now I want that if a checkbox is unchecked, the number of that checkbox (the part of the value) will be removed form the value.
So, if I uncheck the checkbox with name '49' I want that the number '49' and the comma after the number will be removed from the value '49,42,7,33,35,5' of the parameter 'Breed'. So '49,42,7,33,35,5' has to become '42,7,33,35,5'.
Attention, the value of parameter 'Breed' can be several numbers or just one number. So, there has to be a check for a single number or multiple numbers. If there are multiple numbers, the comma after that number also has to be removed.
How can I do this?