Run JS code from string
by syamsoul
JavaScript
let script_str_without_tags = 'alert("testing");';
let the_script_el = $('<script>').html(script_str_without_tags);
$('body').append(the_script_el);
by syamsoul
let script_str_without_tags = 'alert("testing");';
let the_script_el = $('<script>').html(script_str_without_tags);
$('body').append(the_script_el);