print(“<td align=”center” width=”40″ style=”position:static”><select name=”kat$i” onChange=”check2(‘kat$i’,$i)”><option value=”1″>Evet</option><option value=”2″ selected>Hayir</option></select></td>”);
here is the code segment written in php and here is the function it is sent to :
function check2($id,$l)
{
print(“<script type=’text/javascript’>”);
print(“if(document.getElementById(“$id”).value==”1″)
{
hide(“acik$l”);
hide(“maz$l”);
hide(“maz9$l”);
}
if(document.getElementById(“$id”).value==”2″)
{
show(“acik$l”);
show(“maz$l”);
show(“maz9$l”);
});
print(“</script>”);
}
The problem is that when I click EVET on combobox,the fields on the right must be disabled.My algorithm is right cause I wrote this in javascript and it worked.So I think there are some problems with the quotation.I will be glad if u help.