I need to dynamcially change the script tag value based on user choice from drop down, find my code below, it does not return anything
function dynamic()
{
var sel_size = jQuery("#block_size").val();
var st = sel_size.split("x");
var site_url = '<?php echo $site_url;?>';
var path = '<?php echo $this->config->item("path");?>';
var id = '<?php echo $zone_id;?>';
var s = document.createElement("script");
s.type = "text/javascript";
s.src = url+path+"?id="+id+"width="+st[0]+"height="+st[1];
s.innerHTML = null;
alert(s);
}
What is wrong in this, please correct my code, Any help Appreciated...
url? inurl+path