Hello!
But when the application launches the labels read On/OFF-- it's a bug. This should help https://getsatisfaction.com/apperyio/...
when No is selected on the second list item the first list item reverts to unselected -- the problem is that all radio buttons have the same name. To change that on service success (service where you map results) add the following code:
code$('[name=mobileradiogroupName]').each(function () {
var $this = $(this);
name = $this.attr('name');
if (name) {
$this.attr('name', name + $this.attr('_idx'));
}
});/code
where mobileradiogroupName - name of mobileradiogroup
But if you've added any actions on mobileradiogroup - they won't work. You would need to bind them to new names. For example to bind event "Value change" mobileradiogroup on service success event add the following code:
code$('input[name^="mobileradiogroupName"]').die().live({
change: function() {
//here is your code
}
});/code
where mobileradiogroupName - mobileradiogroup name.
Also if somewhere in your programm you used selector [name=mobileradiogroupName] you can't use it now. For example in function on "Value change" event described above you can use "this". In this variable you pass element where event occured. For example use code $(this).val()/code to get value of mobileradiogroup which was changed.