YUI Radiobutton ASP.Net oncheckedchanged -
i'm using yui framework style radiobuttons , want use oncheckedchanged event redirect page. works fine traditional radiobuttons using yui framework oncheckedchanged event never fires. if yui has built in function replacing it. there workarounds this?
so yui replaces <input type='radio'...
html looks <span><span><button /></span></span>
so whatever function attaching oncheckedchanged event, have attach click or change event using yui's api, it'd this.
var buttongroup = new yahoo.widget.buttongroup("radiogroup"); //init buttons var buttons = buttongroup.getbuttons(); //get buttons buttons[0].on('click', function(){alert('a');}); //attach event, need iterate buttons array attach events buttons
Comments
Post a Comment