Is it possible to create a new anchor tag dynamically along with option in drop down list?
I want to open new page in new tab from drop down list box. Is there is any other way to do this?
So far, I have tried this:
function abc
{
$("#reportimg").fadeOut("slow");
<?php $link="<html><a Onclick='openreport($report2)'>Open</a></html>";?>
var text="<?php echo $report2.$link;?>";
var val="<?php echo $report2;?>";
alert(text);
$('#report_list').append( new Option(text,val) );
}