How to get the scenario_id assigned to the global variable..right now in the console it prints empty string
. How to go about this
var scenario_id = "";
$('.edit_class').click(function() {
scenario_id = $(this).attr('value');
});
console.log(scenario_id);