My guess here is that the need of a JavaScript function was to catch an event
without having to refresh the page. Your example is correct as long as you
don't mind the refresh. Hence I find it's more or less relevant here.
--
View this message in context:
http://www.nabble.com/Form-from-INI-mu
>From my understanding, you'll have to use an onchange event at the higher
level and inspect which option is selected in the corresponding javascript
function (not provided here, sorry for being lazy).
Something of the likes of :
advertiser.broadcast.elements.broadcastRecipientsRadio.oncha