- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I'm trying to show on display the current date time on an app, but doesn't works...
exist a plugin for android that I can show the current date time?
here is my code:
function d() { var day = new Date(); var resto = day.toUTCString(); document.getElementById('day').innerHTML = resto; }
and this the HTML line:
<div onclick="day()" class="table-thing widget uib_w_41 d-margins" data-uib="twitter%20bootstrap/input" data-ver="1"> <label id="day" class="narrow-control label-inline"></label> <input class="wide-control form-control default" type="text" placeholder="Placeholder"> </div>
- Tags:
- HTML5
- Intel® XDK
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jonathan,
It is not a matter of an android plugin, try using jquery to access your label, this way:
$("#day").text(resto);
Regards,
Diego
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You onclick should equal
"d()" in stead of day()

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page