c# - Mobile JQuery Advancements -


i trying apply date picker , time picker controls in mobile views . have tried lot went in vein. atlast hope stack overflow. please
me if has applied datepickers or time pickers in mobile views please tell me procedure apply that. thank have tried 1 way given on here

http://jquerymobile.com/demos/1.0a4.1/experiments/ui-datepicker/

i using jquery.mobile.1.3, latest. have written in script , css section

<link rel="stylesheet" href="jquery.ui.datepicker.mobile.css" />  <script src="jquery.ui.datepicker.js"></script> <script src="jquery.ui.datepicker.mobile.js"></script> 

and used control in similar way mentioned never worked me

<input type="date" name="date" id="date" value=""  /> 

did read http://jquerymobile.com/demos/1.0a4.1/experiments/ui-datepicker ?

you need 4 things:

1) label in html

<label for="date">date input:</label> 

2) input field in html

<input type="date" name="date" id="date" value=""  /> 

3) include of js files in html

<script src="jquery.ui.datepicker.js"></script> <script src="jquery.ui.datepicker.mobile.js"></script> 

4) altering of standard date behaviour in script

$( document ).bind( "mobileinit", function(){     $.mobile.page.prototype.options.degradeinputs.date = true; }); 

regards zy


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -