[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

fire a select dropdown from an ajax function

I have a js funcion that calls an ajax routine (asp script) that works fine.

Is there a way to fire a select drop down from the ajax routine? After the asp runs
0
robrodp
Asked:
robrodp
  • 3
  • 2
1 Solution
 
GaryCommented:
What do you mean fire a select drop down
0
 
robrodpAuthor Commented:
Yes... I neeed a select dropdown (<select><oprion.....></select>

To be created when the ajax finction is called.

To solve this all I can yhink of are frames wich I amsure it nt the bes way
0
 
robrodpAuthor Commented:
Gary... you are always on line. And on my wave length!!!!
0
 
GaryCommented:
The basic code is

var mySelect = $('<select />');
$('<option />', {value: "the value", text: "displayed text"}).appendTo(mySelect);
mySelect.appendTo('element to add to'); 

Open in new window

0
 
robrodpAuthor Commented:
That does tyhe trick thx
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now