I have an html code that describes community members like "KS Lenscapes" and "Venky P G" which onclick calls a modal pop-up #visit
<div class="portfolio-info">
<a href="#visit" id="ks" ><h3>K S Lenscapes</h3></a>
</div>
<div class="portfolio-info">
<a href="#visit" id="vpg"><h3>Venky P G</h3></a>
</div>
Run codeHide resultThis is the #visit code:
<div id="visit" class="modalDialog">
<div>
<a href="#close" title="Close" class="close">X</a><br><br>
<div class="text-center">
<p><a class="btn btn-primary btn-lg" href="#" id="ba">Book Appointment</a></p>
</div>
</div>
</div>
Run codeHide resultI need the Assign Book button #visit to find out from which anchor tag it is being requested, and send an email to the appropriate portfolio by taking his email from a file or database.
I do not know how to do this, please help me with this.
source
share