function func1(str)
{
document.getElementById("txtHint").innerHTML='<Br>Graph type: <select id="sel" name="sel" onchange="func2(str)"><option value="1">1</option><option value="2"> 2</option></select>';
}
function func2(x)
{
some codes....
}
In Above coding,
i want to pass the "str" variable to "func2" in onchange .
but above code is not working.
Can anyone Please help me..?