diff --git a/experiments/ui-datepicker/jquery.ui.datepicker.mobile.js b/experiments/ui-datepicker/jquery.ui.datepicker.mobile.js index 9649cc65..36fa2a9d 100644 --- a/experiments/ui-datepicker/jquery.ui.datepicker.mobile.js +++ b/experiments/ui-datepicker/jquery.ui.datepicker.mobile.js @@ -48,7 +48,7 @@ //bind to pagecreate to automatically enhance date inputs $( ".ui-page" ).live( "pagecreate", function(){ - $( "input[type='date'], input:jqmData(type='date')" ).each(function(){ + $( "input[type='date'], input:jqmData(type='date')", this ).each(function(){ $(this).after( $( "
" ).datepicker({ altField: "#" + $(this).attr( "id" ), showOtherMonths: true }) ); }); });