Hi I am developing a web app. I am retrieving the options of the selection box from the database and I want to write these records in the Selectbox. My page structure is similar to:
main.php => This page has a selectbox & Lt; Select id = "my_select" & gt; & Lt; / Select & gt;
retrieve_data.php => I call an AJAX on this page and this page gets a phone number from DB and sends the data to Main.fp.
I get the data from Retrieve_data.php, but when it wants to choose the response it fails. Only empty selection box appears
My response: & lt; Option & gt; Blabla & lt; / Option & gt;
......
And I wrote it like this: $ ("# my_select"). Html (feedback);
I have alerted the response before writing in the selectbox and it warns the correct option but when it tries to write them in the selectbox it fails. Someone thanked me in advance thanks ...
I'm going out on one organ and accept I am returning as a member array to feedback
. >
"#my_select"). Html (response.join (''));
Edit:
In the output & lt; Options & gt;
Tags are misspelled.
Comments
Post a Comment