Jump to content

Updating option/select value.


tomtom

Recommended Posts

Hey there. What I'd like to do is have a list which is selected from mysql. Each is a drop-down.

 

<select name="groupid">

<option value="bla">bla

<option value="bla">bla

<option value="custom">custom

 

So when they click custom, I'd like a div to appear with the forum. So far, easy, and I can do that. With the form...Then, when they click submit. I want it to instead of submitting a form using PHP or whatever. I'd like it to use ajax...again, pretty simple.

 

Then on some script that ajax has posted the info to. It's going to implode the info submitted into a list. - Again simple.

 

The final part is where I don't know what to do. I'd like it to update option value="custom" in the select with that group id with the imploded list.

 

It's hard to explain, so if you have any queries just post. I'd appreciate all help. Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/109165-updating-optionselect-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.