here is my code.....
[HTML]var len=document.form1.select1.length;
for(i=0;i<len;i++)
{
if(document.form1.select1[i].value)
{
flag="false";
break;
}
}
if(flag==false)
{
alert("select value");
}[/HTML]
my error is object required
in php select1[] is name of select button
pls help.....
Give selected attribute to one of the options you want to be default.
[HTML]Thank you for your response.acually i display selected option in database also. that is previosly selected option also display if i give selected any one it will create duplicate.
so i need any other solution pls.....[/HTML]
Thank you for your response.acually i display selected option in database also. that is previosly selected option also display if i give selected any one it will create duplicate.