can't select the radio buttons after insert them with IE7.
I develop a component that inserts radio buttons into an div, after this it use the jquery ui buttonset widget on this elements.
this works like this example:
- var container = $('#thediv');
- var eopt = document.createElement("input");
- eopt.name=options.name;
- eopt.type='radio';
- $.each(data[options.list], function(j, val) {
- var option = eopt.cloneNode(true);
- option.value = j;
- option.text = val;
- option.id=options.name+(++i);
- container.append($(option));
- container.append(
- $('<label id="'+option.id+'label" for="'+option.id+'">'+option.text+'</label>')
- );
- o++;
- }
- container.buttonset();
this works like expected.
but when I submit the parent form or when I register an change event with $('#thediv > input').change(function() {alert('test');});
it does not send the values of this radio buttons.
With firefox it works fine only matters IE7 .
you can see this live in Struts2 jQuery Plugin Showcase goto "Ajax Forms > Buttonset / Radio Buttons"
thanking you in anticipation
Best Regards
Johannes eppert