Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@Wilto Wilto authored
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",
Please sign in to comment.
Something went wrong with that request. Please try again.