Retrieve dynamic dropdown list values to place in a varialbe
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2022
07:25 AM
05-13-2022
07:25 AM
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
Labels:
- Labels:
-
Variables
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2022
02:07 AM
05-14-2022
02:07 AM
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 .
