I have an event calendar to diplay all the days. But i wnat ot hide the Weekends so i have written a javascript function to that. But it is not rendering with the calendar.
JavaScript
$(document).ready(function () {
$('._title').parent().attr('colspan', '5'); // title row initially has a colspan of seven
$('._dayheader:first, ._dayheader:last', $('#<%= Calendar1.ClientID %>')).hide(); // remove first and last cells from day header row
$('._weekendday').hide(); // remove all the cells marked weekends
});
Calendar function
Can Anyone help me why the javascript function is not rendering with the calendar.
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bryian TanPosted Apr 21, 2017, 9:41 PM