I've been trying to get the dayClick in the FullCalendar plugin to work, but when I click nothing is happening. Can't figure out what it is I'm doing wrong. I click on a day, but no alert message. jsfiddle below. What am I doing wrong.
FullCalendar plugin dayClick not working
1.4k views Asked by ski760 At
2
There are 2 answers
0
On
I don't really know this library but you had two non-related issues in your code:
- The moment script tag was placed before jQuery, my guess it should be placed after.
- You had four slashes in your moment src (i.e.
src="https:////..."
) After fixing these two issues I got theconsole.log
to work, but for some reason thealert()
still wasn't working.
alert
is turned off in JSBin. You shouldn't debug withalert
because it stops code execution. While JSBin is a great tool for building quick samples, it makes debugging harder.And as @idoberko2 says: You should put jQuery as first included script.
Here is a working JSBin