IOS compatible date input type - minimum value of min

I am trying to set the date using jQueryMobile in the UIWebView iOS application, the value is set correctly, but setting the date of the minimum and maximum attributes does not work.

 <input type="date" data-clear-btn="false" name="date-1" id="date-1" min="2013-04-15" max="2013-09-15" value ="2013-08-15" >"" 

AND

 $('input[type="date"]').val('yyyy-MM-dd'); 

When I run it on the simulator, when the date field is selected, the date selector is visible, but the minimum date is not set.

+7
jquery-mobile ios
source share
1 answer

Setting minimum and maximum values โ€‹โ€‹for input type="date" not supported by the simulator safari.

You can test it by going to this site and try out the control. It will (probably) work in the desktop browser, but will not in the simulator browser or in your UIWebView .

0
source share

All Articles