Languages

Menu
Sites
Language
How to use Tizen Winset date and time picker

I got an error while copying and pasting date and time picker in my web app

Responses

3 Replies
Marco Buettner
how do you copy and paste?
karthikraj s
    			<li data-role="list-divider" data-line="false" class="ui-datetime-text-sub" ><span id="selected-date1"><em>(select a date first)</em></span></li>
			<li class="ui-li-dialogue ui-datetime">
				<div class="ui-datetime-text-main">
					<input type="datetime" name="demo-date" id="demo-date"
						data-format="MMM dd yyyy	hh:mm tt" value="2012-06-30T00:00:00+09:00" />
				</div>
			</li>

Here is my code , script and i copied "jquery.mobile.tizen.datetimepicker.js"  into my project


 

 
$( document ).one("pagecreate", "#datetimepicker-demo", function () {

    $("#demo-date").on("change", function ( ) {
		$("#selected-date1").text( $(this).datetimepicker("value") );
	});

	
});

only above things i did

Marco Buettner

If you use "Tizen Webframework" you have nothing to include like tizen.datetimepicker.js because its already in Tizen Webframework included...

I will use pageinit instead pagecreate as event. 

And whats error did you get?