You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any one please help
I want to render different events on week calendar how can i do that here is code of two click functions which is calling function that contain demo.js code
var year = new Date().getFullYear();
var month = new Date().getMonth();
var day = new Date().getDate();
data= [
{
"id":1,
"start": new Date(year, month, day, 12),
"end": new Date(year, month, day, 13, 30),
"title":"Lunch with Mike"
},
{
"id":3,
"start": new Date(year, month, day + 1, 17),
"end": new Date(year, month, day + 1, 17, 45),
"title":"Hair cut"
}]
asad(data);
});
$("#2nd").click(function(){
$('#calendar').empty();
var year = new Date().getFullYear();
var month = new Date().getMonth();
var day = new Date().getDate();
data=[{
"id":5,
"start": new Date(year, month, day + 1, 14),
"end": new Date(year, month, day + 1, 15),
"title":"Product showcase"
},
{
"id":6,
"start": new Date(year, month, day, 10),
"end": new Date(year, month, day, 11),
"title":"I'm read-only",
readOnly : true
} ]
asad(data);
})
});
function asad(data)
{
demo file code here
}
The text was updated successfully, but these errors were encountered:
Any one please help
I want to render different events on week calendar how can i do that here is code of two click functions which is calling function that contain demo.js code
$(document).ready(function() {
$("#1st").click(function(){
});
function asad(data)
{
demo file code here
}
The text was updated successfully, but these errors were encountered: