diff --git a/js/widgets/forms/checkboxradio.js b/js/widgets/forms/checkboxradio.js index b7b2de26af4..b6c9d9c2111 100644 --- a/js/widgets/forms/checkboxradio.js +++ b/js/widgets/forms/checkboxradio.js @@ -196,7 +196,7 @@ $.widget( "mobile.checkboxradio", $.extend( { // If we're inside a form if ( form ) { - formId = form.id; + formId = form.getAttribute( "id" ); // If the form has an ID, collect radios scattered throught the document which // nevertheless are part of the form by way of the value of their form attribute diff --git a/tests/unit/checkboxradio/input-set-tests.html b/tests/unit/checkboxradio/input-set-tests.html index 67eec48b4f7..3359508b2f4 100644 --- a/tests/unit/checkboxradio/input-set-tests.html +++ b/tests/unit/checkboxradio/input-set-tests.html @@ -32,6 +32,14 @@
+ +