Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Onchange <htm:select>-urgent

Status
Not open for further replies.

elanja

Programmer
Sep 10, 2003
13
IN
when I change the Combobox element.the web page is changed according to the element.
How can i do the above work.
if there is any code .pls send me.
by
ram
 
Hi,

You need to write a JavaScript function for the SelectBox and you need to call the JS function for every onChange event of the Select Box.

<script language=&quot;javascript&quot;>
function callPage()
{
// write the function which submits the page to a different page or Action
}
</script>

In the Form call the above funcation

<form name=&quot;frm&quot; action=&quot;&quot;>
<select name=&quot;tstSel&quot; onChange=&quot;callPage()&quot;>
<option value=&quot;1&quot;>one</option>
<option value=&quot;2&quot;>Two</option>
</select>
</form>

Cheers
Venu
 
Hi,

Sorry I have used normal HTML tags change it to html tag libs.

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top