We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi All,
I have the following script:
`<script type="application/javascript"> var eventData = [ {"date":"2015-01-01","badge":false,"title":"Example 1"}, {"date":"2015-01-02","badge":true,"title":"Example 2"} ]; $(document).ready(function () { $("#my-calendar").zabuto_calendar({ data: eventData, action: function () { return myDateFunction(this.id); } }); });
function myDateFunction(id) { var date = $("#" + id).data("date"); var hasEvent = $("#" + id).data("hasEvent");
// HOW TO GET VALUE OF "TITLE", ETC "EXAMPLE 1"
} </script>`
My question is, how do we get the "title" value as we can obtain the value of "date" and "hasEvent"?
The text was updated successfully, but these errors were encountered:
I have tried but failed:
var title = $("#" + id).data("title");
Sorry, something went wrong.
No branches or pull requests
Hi All,
I have the following script:
`<script type="application/javascript">
var eventData = [
{"date":"2015-01-01","badge":false,"title":"Example 1"},
{"date":"2015-01-02","badge":true,"title":"Example 2"}
];
$(document).ready(function () {
$("#my-calendar").zabuto_calendar({
data: eventData,
action: function () {
return myDateFunction(this.id);
}
});
});
function myDateFunction(id) {
var date = $("#" + id).data("date");
var hasEvent = $("#" + id).data("hasEvent");
}
</script>`
My question is, how do we get the "title" value as we can obtain the value of "date" and "hasEvent"?
The text was updated successfully, but these errors were encountered: