how to split the ajax output response in different dropdown???

Recommended Answers

All 5 Replies

can you specify your question?
what is your ajax responds?

If javascript grabs the response as a comma separated string, sResponse, you do a

  arArray = sResponse.split(",")

arArray is an array. So now you create your Select dropdown with each arArray[] element.
If you have a variable number of dropdown elements, you will have to for-loop through the array while producing your option list.

.

depends on what you want to do and how to respons is formatted..

Member Avatar for diafol

@arun_22 Please re-frame your question. It does not give enough info. In addition, if you do not respond to answers to previous questions, do not expect members to respond.

commented: Yes, please. And you can't run off to aaronbrothers for that frame either. +12
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.