GeeCON Prague 2014*
The moose likes Struts and the fly likes getting and setting value in  a combo box..VIA javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting and setting value in  a combo box..VIA javascript" Watch "getting and setting value in  a combo box..VIA javascript" New topic
Author

getting and setting value in a combo box..VIA javascript

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Hi All...

I using an combo box and setting some values in it via a LavelValue Bean for it code is show below :-





Now in javascript code when I try to set and get value for the combo box prop. "myarea" via getElementById or name, I was fail in doing this. I an setting values in pageload via a labelvaluebean say "strQryCode"...

MY code for the javaScript is shown below..



I need to get and set new values according to the drop down plus also modify delete selected and delete all options for this combo.
Please help me out

Thanks and Regards,
Kaustubh


No Kaustubh No Fun, Know Kaustubh Know Fun..
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

By mistake i put this question in JSP forum . kindly request from bartenders to move this into html and javascript forum.

Thanks
Kaustubh
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61310
    
  66

As the posted code is full of Struts tags, this has been moved to the Struts forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Thanks Bear..I hope I'll get some response there..
kaustubh
 
GeeCON Prague 2014
 
subject: getting and setting value in a combo box..VIA javascript