jquery assign value to global variable on click
How to get the scenario_id assiged 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);
No comments:
Post a Comment