Reputation: 20255
Several radio buttons with the same name act as a set, where checking one unchecks the others. What is the scope of this behavior?
iframe
s?I have always used them in forms, but now writing formless HTML (using ajax for posting), and everything seems to be working just fine, so my guess is #2.
Upvotes: 7
Views: 3545
Reputation: 21269
Radio buttons with the same name in the same form act as a set, but not with those of different forms. Radio buttons with no form act as a set with those with no forms.
test it yourself: http://jsfiddle.net/8qqNC/1/
Upvotes: 11
Reputation: 944555
Radio buttons are scoped to the form they are in.
Frames contain external documents, and nothing in them is considered part of the current document, let alone an element within that document.
Upvotes: 3