I have used the following code. It seems to work fine when I am checking bunch of check boxes. For e.g. if I check first three check boxes, getValue() returns 0,1,2. However when I uncheck check box number 3, getValue() only returns 0,1.function CountrySelection(item){ var CountryOptionVal = item.getValue(); alert("Option selected " + CountryOptionVal);}
It hasn't resolved the problem because i need to know if a certain checkbox is checked or not. Right now the way getValue() is behaving, it does not give the index of the checkbox when I uncheck it.
Yeah i know how to program thank you for your insight. I am just looking for a better way of doing this.
oldValue
function checkboxChangedHandler(item) { var oldVal = item.oldValue + ""; var newVal = item.getValue() + ""; // From here you can either do regex matches on the strings // or perhaps split them into an array, create a hash, etc.}