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

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

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64835
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the posted code is full of Struts tags, this has been moved to the Struts forum.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear..I hope I'll get some response there..
kaustubh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic