Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Editable Combo-box

 
Ganesh MV
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a combo box in web page and the values of
the combo are fetched from database. Now I need
to allow the user to add his own entry to the combo,
if he doesn't find a proper option in the combo.

how to make the combo editable? please give me your valuable inputs.
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to my best knowledge you'll need a seperate input field and something like a "add" button. and one to "remove". and one to "edit"...

all this will result in a reloaded combo-box, which means that you cannot manipulate it on the fly, even though you might use ajax to give it a "on the fly"-impression.

:-)

jan
 
Ganesh MV
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jan,

thanks for your reply. I'll try adding another text box
to add values to combo.

thanks again.
 
RoshaniG Gopal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ganesh,
A JS is available on net(i dont have the link) that would do the same what you desire. I couldnt post the same coz if JS validation on javaranch. Please search adn you should be able to find it. I had the same for my code..
Regards,
Roshani
 
Ganesh MV
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roshani,

I've searched in the net as you told and i got
some javascripts which works perfectly.

now i'm able to add new entry in my combo.

thanks for your suggestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic