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

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -