jquery/jquery-mobile — Issue #3670: Radio button does not function properly
Author: Azuo
Created: 2012-02-29 07:52:56+00:00
State: open

Consider the following simple HTML:

JQM Radio Test

Check one:

Radio1

Radio2

Radio3

When you click any decorated radio button, the native radio button does not get checked at all. If you click submit button, you will be informed that no radio button is checked.

This problem does not occur if using JQM 1.0.1.

I don't know whether this is a jQuery bug or a JQM bug, but if I move the following line (in radiocheck.js)

self._getInputSet().not( input ).removeAttr( "checked" );

just before the line:

input.attr( "checked", inputtype === "radio" && true || !input.attr( "checked" ) );

the problem will be fixed.