Connecting Tech Pros Worldwide Forums | Help | Site Map

About Handling the Html:Select Box State when submitted to other page

rajesh
Guest
 
Posts: n/a
#1: May 14 '07
Hai to all,

ASM
Guest
 
Posts: n/a
#2: May 14 '07

re: About Handling the Html:Select Box State when submitted to other page


rajesh a écrit :
Quote:
Hai to all,
On the other Page ?

On the same page before to submit ?

2)
<form onsubmit="var k = document.myForm.mySelect.selectedIndex;
alert(document.myForm.mySelect.options[k].text);" blah >

1)
var url = self.location.toString();
url = url.substring(url.indexOf('?')+1);
url = url.split('&');
for(var i=0; i<url.length; i++)
if(url[i].indexOf('mySelect')>=0)
alert(url[i]);


--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Closed Thread