We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,254 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

datepicker

how to implement, onclick on radio button datepicker has to appear otherwise it should be hidden.

3
Contributors
3
Replies
2 Hours
Discussion Span
4 Months Ago
Last Updated
4
Views
Question
Answered
anandschiru
Light Poster
38 posts since Oct 2012
Reputation Points: -1
Solved Threads: 0
Skill Endorsements: 0

Enclose the datepicker in div tags with id (i.e. datepicker-wrap) and assign a function to a onclick event of the radio button

function toggleVisibility(id) {

    var element = documentGetElementByID(id);
    element.style.visibility = element.style.visibility == 'hidden' ? 'visible' : 'hidden';
}

Or you can use jQuery toggle method.

broj1
Nearly a Posting Virtuoso
1,211 posts since Jan 2011
Reputation Points: 167
Solved Threads: 164
Skill Endorsements: 13
Bachov Varghese
Junior Poster
123 posts since Sep 2011
Reputation Points: 41
Solved Threads: 29
Skill Endorsements: 3

thanx a lot

anandschiru
Light Poster
38 posts since Oct 2012
Reputation Points: -1
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 4 Months Ago by broj1 and Bachov Varghese

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0740 seconds using 2.83MB