events - Javascript directly call modal? -
with below code can pop modal when click logo. how same thing instead call directly within event listener?
<div class="logo-brand header sidebar rows"> <div class="logo"> <h1><a href="#fakelink" class="md-trigger" data-modal="logout-modal"><img src="assets/img/logo.png" alt="logo"> sample name</a></h1> </div> </div>
i want call within listener:
var marker = new google.maps.marker({ position: location, map: map, }); marker.addlistener('click', function() { // want dialog show here... });
thanks!
Comments
Post a Comment