I am new to JS, and have found the answer to a previous question, which brought up a new question, which brought me here again.
I have a Reveal Modal that contains a
There were actually a couple of problems with your source code.
initialize()
function is created, but never called$(document).ready
should be called after jQuery us loadedmap
should be a global variable (like @Cristiano Fontes said) and not a var map
click
event is never called. You're trying to combine the two methods Reveal from Zurb provides to open a dialog (one with JS, one with only HTML). You need to use the only JS method.#myModal1
is never located in the HTML).And now: Download the solution (Please provide us with a download/JSFiddle next time, so we don't need to create this ourselves).
Hope it helped!