D
D
DimonfromChehov2015-11-14 01:29:21
PHP
DimonfromChehov, 2015-11-14 01:29:21

Changing the html page tag. how to add an option?

Greetings!

There is an html: select element with different options.

Please tell me how to make it possible to add new options to this select through a text field by pressing a button so as not to climb into the code every time.
That is, I entered a new value for the drop-down menu in the text field, clicked the button, and this new value will be entered into the html code of the page and saved.

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SwoDs, 2015-11-14
@SwoDs

You need PHP MySQL AJAX
In order to save - it would be more correct to store the selector fields in the database, when you click on the button, you send an Ajax request with saving, which, if successful, will return a select with a new field.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question