how to pass a formbean value to javascript function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prathna
    New Member
    • Jun 2007
    • 7

    how to pass a formbean value to javascript function

    Hi all,
    I would like to know how to pass a form bean value to javascript function to perform some validation..

    I have a dropdown list and a textfield.
    I have created the dropdown list using html:select tag & the textfield using html:text tag.I have a corresponding formbean with a get/set methods to get/set the dropdown value selected and also for the textfield.now i have onchange attribute in which i call a javascript function.

    now how do i send the formbean value to the javascript function & also place the focus automatically on the textfield after selecting a value from the drop down list

    Thanks in Advance.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    please post the code you have so far ... so that we may have something to work with.

    kind regards

    Comment

    Working...