Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:select onchange:::

 
reddy kl
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,i have <html:select> in which am getting collection and in onchange function i want to display the respective(selected one)page in other(different) frame.can any help me out with a piece of code...
------here is my <html:select>-----
<html:select property="selectedClaimType" onchange="toViewClaimType(this.form)">
<html ptions collection="claimValueList" property="value" labelProperty="label"/>
</html:select>
------
and in the function toViewClaimType() ..how to set different actions based on selection???
c'ze the contents in claimValueList got it's own jsp page////
thanks in advance...
reddy kl
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is pure javascript - you could do it in the javascript function by getting the value of the selected option in the select and then doing a
location.href(myurl);
here myurl contains the URL from the selected option.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic