views:

27

answers:

0

Hello

The following code works in IE and Chrome (linux) but will not working in Firefox. Any Ideas why? This is using the YUI 2 developer tools. It will display the buttons, however it does not pass the actual value of the radio buttons.

// php
<? print_r($_POST); ?>

// html 

var oButtonGroup3 = new YAHOO.widget.ButtonGroup({
                                    id:  "buttongroup3",
                                    name:  "radiofield3",
                                    container:  "radiobuttonsfromjavascript" });

    oButtonGroup3.addButtons([

{ label: "Radio 9", value: "Radio 9", checked: true },
{ label: "Radio 10", value: "Radio 10" },
{ label: "Radio 11", value: "Radio 11" }, 
{ label: "Radio 12", value: "Radio 12" } 

]);
var onCheckedChange = function (e) {

    alert(e.prevValue);

};
</script>

<form name="test" method="post">
<div id="radiobuttonsfromjavascript"></div>
<input type="submit" value="submit">

</form>