TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bineesh Viswanath
NA
1k
775.4k
Get Current Date & Time using JQuery
Sep 6 2013 12:21 AM
Sir, I want your help in JQuery DateTime Function.
Please take a look to the following function:-
<script>
function GetCurrentdate()
{
document.getElementById("lbl").innerHTML=Date();
}
</script>
<button type="button" onclick="GetCurrentDate()" >Display Date</button>
<asp:Label ID="lbl" runat="server"></asp:Label>
</form>
</body>
</html>
In this function, I am getting the current date and time in button_Click event.
when I place a <asp:TextBox> instead of <asp:Label> and add textbox ID to the getElementById("TextBox1"), I am not getting the output. why?
Reply
Answers (
1
)
Virtual Directory Error in Web.config
Line Hiddding Function in JQuery