Any help will be appreciated. I just want to assign javascript variables inside php code.can you guys sort it.
From the above code.. Need to assign var gtitle into do_shortcode()
<script type="text/javascript">
jQuery(document).ready(function($) {
$(document).on('click', '.map' , function(){
var gtitle = $(this).data("fpid");
<?php $data = do_shortcode('+gtitle+'); ?>
}
}
</script>