Ask a Question

Retrieve dynamic dropdown list values to place in a varialbe

solizj2
Regular Visitor

Retrieve dynamic dropdown list values to place in a varialbe

Our application has dropdown name list where each value has a dynamic name with a concatenated age and gender on the end.   From the dropdown list I need to be able to determine which individual I wish to select based on the Age and Gender.

 

Example where dropdown list contains this:

Joyce Lovegrove 26F

Johnnie Lovegrove 0M

Alan Lovegrove 29M

 

Lets say I want to find the new born, 0M (age|gender)

 

I am using VBScript to write my Scripts

1 REPLY 1

To add a dropdown list dynamically, you would need to create the HTML <select> element, its label and optionally a <br> tag. In pure JavaScript, you can use the document.createElement() method to programmatically create a dropdown list. Then you can call the Node's appendChild() method or jQuery's .
 
cancel
Showing results for 
Search instead for 
Did you mean: