Here is what i found
http://www.quirksmode.org/dom/w3c_core.html#microsoft
Scroll down to getElementsByName() section
According to it the getElementsByName() is supported pretty well,
except some minor things whcih is usually not the case anyway.
Like in Opera will be returned as well..
So you j
Brilliant! I'll take any incompatibilities of getElementByName over the
totally broken radios any day!
I never thought to change that to a standard method.
Thank you so much. That was driving me nuts!
George-147 wrote:
>
>
> I just had a wild idea and it looks like working
>
> replace
I just had a wild idea and it looks like working
replace following code in prettyCheckboxes
$('input[name='+$toCheck.attr('name')+']').each(function(){
$('label[for=' + $(this).attr('id')+']').removeClass
('checked');
});
with
$(document.getElementsByName($toCheck.attr('name'))).
Wow, ok...thanks!
I didnt think it was a jQuery issue and am surprised that jQuery, with as
robust and fantastic as it is, wouldn't support array names for form
elements.
That seems like a major oversight to me :/
But, maybe I'm one of only a few people who actually use array names/IDs.
hr
I am with you now
the problem is that you have weird name, with '[]' in it.
this line
$('input[name='+$toCheck.attr('name')+']')
fails and returns empty collection.
The problem is described here
http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_chara
Thanks, but I didnt say I didnt want them to have the same name, I said that
the script didnt work when the names were arrays.
When the radio button groups have an name with an array, the script breaks
and you can select/deselect multiple radio buttons within the group.
Here's an example:
1
2
Sorry instead of "Why do you want to give them the same name?"
I meant to say "Why do you not want to give them the same name?"
George.
On Nov 13, 3:06 pm, George <[EMAIL PROTECTED]> wrote:
> The problem that regular radio buttons are working only when they have
> the same name.
> No wonder p
The problem that regular radio buttons are working only when they have
the same name.
No wonder prettty ones not working too... :)
Why do you want to give them the same name?
You can use different ids if you want. Something like this
George.
On Nov 12, 2:05 pm, Ahhk <[EMAIL PROTECTED]> wro
Anyone know how to fix this?
--
View this message in context:
http://www.nabble.com/PrettyCheckboxes-not-working-with-radio-array-names-tp20412719s27240p20467067.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
9 matches
Mail list logo