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 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Bryian TanRank #396 · 6.3K reputationPosted Apr 21, 2017, 5:41 PM EDT