I am trying to eliminate some redundancy, but I appear to be missing something that is probably obvious…
this does not work…
$('input[type="radio"][name="rdoQuestionAnswer"][name="rdoQuestionAnswerYes"][name="rdoQuestionAnswerNo"]').live({
click: function (e) {
...
}
});
this does…
$('input[type="radio"][name="rdoQuestionAnswer"]').live({
click: function (e) {
...
}
});
I don’t want to have to create one of these for every radio button or radio button list…
comments, suggestions?
thanks in advance.
Change your selectors, so that they are separated by a comma:
On a side note: Are you sure you have to specify
type=radio?