Skip to content
This repository
Browse code

Fixes #3086 — Windows Phone 7 seems unable to use find() for an attri…

…bute-based selector, in this context.
  • Loading branch information...
commit a0ec2eb4f39bec039c94ace7a3dc5393a29ff24c 1 parent 61cd735
Mat Marquis authored November 17, 2011
2  js/jquery.mobile.forms.checkboxradio.js
@@ -14,7 +14,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
14 14
 			input = this.element,
15 15
 			// NOTE: Windows Phone could not find the label through a selector
16 16
 			// filter works though.
17  
-			label = input.closest( "form,fieldset,:jqmData(role='page')" ).find( "label[for='" + input[ 0 ].id + "']"),
  17
+			label = input.closest( "form,fieldset,:jqmData(role='page')" ).find( "label" ).filter( "[for='" + input[ 0 ].id + "']" ),
18 18
 			inputtype = input.attr( "type" ),
19 19
 			checkedState = inputtype + "-on",
20 20
 			uncheckedState = inputtype + "-off",

0 notes on commit a0ec2eb

Please sign in to comment.
Something went wrong with that request. Please try again.