Skip to content
Browse files

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

…bute-based selector, in this context.
  • Loading branch information...
1 parent 61cd735 commit a0ec2eb4f39bec039c94ace7a3dc5393a29ff24c @Wilto Wilto committed Nov 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.forms.checkboxradio.js
View
2 js/jquery.mobile.forms.checkboxradio.js
@@ -14,7 +14,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
input = this.element,
// NOTE: Windows Phone could not find the label through a selector
// filter works though.
- label = input.closest( "form,fieldset,:jqmData(role='page')" ).find( "label[for='" + input[ 0 ].id + "']"),
+ label = input.closest( "form,fieldset,:jqmData(role='page')" ).find( "label" ).filter( "[for='" + input[ 0 ].id + "']" ),
inputtype = input.attr( "type" ),
checkedState = inputtype + "-on",
uncheckedState = inputtype + "-off",

0 comments on commit a0ec2eb

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