Call Function on Link Click
Hello,
I have the following on my HTML code:
- <a href="#" id ="Map" onclick="ShowGoogleMap(Model.Lat, Model.Long);">Show Map</a>
But I would like to not use "onclick".
How can I use JQuery to have the ShowGoogleMap to be called when the link is clicked?
And I need to pass the two parameters: Model.Lat and Model.Long.
Maybe I could have these inside hidden span tags with Ids Model.Lat and Model.Long.
Then JQuery would get the Lat and Long values from the span tags and would call the function when the link is pressed?
How can I do this?
Thank You,
Miguel