This is my JavaScript function:
$('.btn-setting').click(function (e) {
e.preventDefault();
$('#myModal').modal('show');
});
And this is how I call it in PHP file:
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
My question is: how to pass a variable in:
$('#myModal<?php $variable ?>').modal('show');
And call it in a PHP file like this:
<div class="modal fade" id="myModal<?php echo $variable ;>?" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
echothe PHP variables. According to the vampires :)<?=$variable;?>.