Skip to content

v1.0.7: handle id/name clashes in radio buttons

Latest
Compare
Choose a tag to compare
@bboyle bboyle released this 19 Feb 08:41

form.elements[ name ] will includes elements using id="name". this patch adds an extra check when finding all radio buttons in a group to ensure they share the same name attribute (and remove any stray elements that matched by id).