I agree with Fred. It's much easier to write your javascript in a separate
.js file instead of adding inline javascript. Inline javascript tends to
become difficult to maintain over time.
In jQuery you could write something like this:
$(':checkbox[name="broadcastRecipientRadio"][value="all"]').cli
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
They probably chose not to allow you to use the onclick tag for this because
it is not good standards to use inline javascript. I am also sure they
would advise against using style="" as well.
Another question is why do you even need to use javascript? If you have two
buttons one has a value of s
>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
I have a set of radio buttons in a from generated from an ini file..
im trying to add to different onclick method calls based on which one is
selected
this is a short snippet of what i have
; Broadcast Message Recipients Radios
advertiser.broadcast.elements.broadcastRecipientsRadio.type = "radi