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
Question Answered as of 4 Months Ago by
broj1
and
Bachov Varghese