I have proble for multiple data entry in select tag. The folowing script is my code For single entry select statment and java script is correct but for multiple entry I got an error. How can I call javascript for the multiple select entry.
Thanks.
<script language="JavaScript">
function yeni_ac(secilen,x,y)
{
if (secilen.options[secilen.selectedIndex].text == "Seriliazed")
yeni = window.open("qms/add_serial.php?sil="+x+"&sil2="+y, "YeniPencere", "toolbar=0, width=400, height=500, resizable=1,scrollbars=yes");
secilen.options[secilen.selectedIndex].text == "";
}
</script>
<form method="POST">
//There is proble for the multiple entry for the select I got java script error.
<?
for($count=1;$count<=5;$count++){
echo ' Item :'.$count;
echo ' <select name="serial1[]" onchange=yeni_ac(this.form.serial1,3,4)>
<option> Non Serialized
<option> Seriliazed
</select>
<BR>' ;
}
echo '<BR><BR>';
// There is a no proble for the single select
echo ' <select name="serial" onchange=yeni_ac(this.form.serial,3,4)>
<option> Non Serialized
<option> Seriliazed
</select>
<BR>' ;
echo '</form>
</body> ' ;
?>