I have the following href link
<a href="{$data.base_url}find_dates.html" data-toggle="modal" style="color:#fff;" class="modal-ajax">Click Here to View data</a>
and the pop is showing on page reload, but I want to show it only on click.
$('.modal-ajax').modal();
Now the page is redirect into url. I want to show the pop up
I didnt wrote any js code. i tried this now
$('a').click( function(e) {
e.preventDefault();
$('.modal-ajax').modal();
return true;
} );
but it raises $('.modal-ajax').modal(); is not a function error