Download GDPR Compliance WordPress Plugin in just $9 today.

I am dynamically generating markers and using the address spot to display information that is sometimes large. So I want to toggle the visibility with jQuery.
(incrementally looping $k)
$appointment_div = ”.$appointment_data.’Appt Notes’;
When the info window is displayed, the div has class appointment_notes_1, for instance, but jQuery cannot hide div.appointment_notes_1 but CSS can hide it.
Can you give advice?

Jquery is
jQuery( document ).ready(function() {
jQuery(“div.appointment_notes_1”).hide();

jQuery(“#appointment_click_1”).click(function () {
jQuery(“div.appointment_notes_1”).toggle(700);
});
});

I tried to put the script directly into the marker data, but I think it’s being sanitized. Should I add my script to your maps.js?

You do not have permission to view answers

Please login or Register to Submit Answer