Hey guys,
ive got this problem, i created SELECT by using the javaScript
like this:
document.frmadd.SellType.options[0]=new Option('---');
till now everything cool,
but later when i want to check what have i selected ,
i cant (also by javascript)
if (document.frmadd.SellType.options[0].value == '---')
{
alert("kuku");
}
its doin absolutly nothing....
i tried severel stuff, but nada...
may be if ill add to the select Value when i create it above ill solve the problem, but i dont know how,
ill be very thanksfull if some one can help me with my problem,
urgent......
ive got this problem, i created SELECT by using the javaScript
like this:
document.frmadd.SellType.options[0]=new Option('---');
till now everything cool,
but later when i want to check what have i selected ,
i cant (also by javascript)
if (document.frmadd.SellType.options[0].value == '---')
{
alert("kuku");
}
its doin absolutly nothing....
i tried severel stuff, but nada...
may be if ill add to the select Value when i create it above ill solve the problem, but i dont know how,
ill be very thanksfull if some one can help me with my problem,
urgent......