Skip to content

Commit 37d22dd

Browse files
committed
fixed multiple date picker caused by unscoped selector, thanks to Matt Rosenquist. Fixes jquery-archive#972
1 parent 0691c22 commit 37d22dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experiments/ui-datepicker/jquery.ui.datepicker.mobile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
//bind to pagecreate to automatically enhance date inputs
5050
$( ".ui-page" ).live( "pagecreate", function(){
51-
$( "input[type='date'], input[data-type='date']" ).each(function(){
51+
$( "input[type='date'], input[data-type='date']", this ).each(function(){
5252
$(this).after( $( "<div />" ).datepicker({ altField: "#" + $(this).attr( "id" ), showOtherMonths: true }) );
5353
});
5454
});

0 commit comments

Comments
 (0)