souravsasi
10-01-2002, 06:58 AM
Hi,
I have a .php file. If i select a item form the select menu,The corresponding file has to be called and the last value in the select menu will be selected.loading select option is dynamic(from .php file).
function test(targ,selObj,restore){
eval(targ+".location='test.php?programno="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
<form name=testfm option action="">
<select name='program' onChange="test('parent',this,0)"> <option value='1'>1</option><option value='2'>2</option><option value='3'>3</option> </select></form>
can any one help me
sasi.
I have a .php file. If i select a item form the select menu,The corresponding file has to be called and the last value in the select menu will be selected.loading select option is dynamic(from .php file).
function test(targ,selObj,restore){
eval(targ+".location='test.php?programno="+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
<form name=testfm option action="">
<select name='program' onChange="test('parent',this,0)"> <option value='1'>1</option><option value='2'>2</option><option value='3'>3</option> </select></form>
can any one help me
sasi.