I have two php pages. On first page I have links and on another I have bootstrap modal. When I click on link I want to open modal window(another page) and get id there. How can I achieve that?
Here is jsfiddle
<div class="read_more" data-id="1"><a href='' data-toggle="modal">Read More...</a></div>
<div class="read_more" data-id="2"><a href='' data-toggle="modal">Read More...</a></div>
<div class="read_more" data-id="3"><a href='' data-toggle="modal">Read More...</a></div>
jQuery(document).ready(function($) {
$('.read_more').click(function(e) {
$('.portfolio-modal').modal('show');
});
});