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

Add option to HTML

 
David Avrami
Ranch Hand
Posts: 30
C++ Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,
i had my javascript to add options,in my HTML i can see them but i can't select them.



any ideas?
 
David Avrami
Ranch Hand
Posts: 30
C++ Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got It!
mt bad, all working fine..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be good form to point out what you found in case anyone else runs up agains the same situation.
 
David Avrami
Ranch Hand
Posts: 30
C++ Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well i did though about it, but in my case the problem was not in the code..it runs great,
the problem was i have been invoking the method "onchange()=makeOptions(colName)" in every combobox
for some reasons and every time you pick some other option in that same combobox it calls the function again because "onchange" was
invoked therefor the script reloads the options and it seems like you can't pick nothing.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting the followup.

By the way, please read HtmlHasNoComboBox. Using correct terminology is an important part of development.
 
David Avrami
Ranch Hand
Posts: 30
C++ Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry you'r right, it is a Select tag, the id="Combobox".
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, but calling it a combo box is not accurate, even if it's only the id. It may seem pedantic but development is all about attention to details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic