This variable is in a .php view
<?php $actualizar=$_SESSION["actualizar"]; ?>
This is in a .js file is working under the mvc model
$( document ).ready(function() {
// the "href" attribute of the modal trigger must specify the modal ID that wants to be triggered
$('#modal2').modal({
dismissible: false, // Modal can be dismissed by clicking outside of the modal
inDuration: 3000, // Transition in duration
outDuration: 200, // Transition out duration
startingTop: '4%', // Starting top style attribute
endingTop: '10%', // Ending top style attribute
});
$('#modal2').modal('open');
});
Any ideas on how to capture that variable session in jquery?