Linked Questions

0 votes
5 answers
7k views

Possible Duplicate: JavaScript - populate drop down list with array I have following select box, <select name="supplier" id="supplier"><option></option></select> I want to ...
Basim Sherif's user avatar
  • 5,438
-5 votes
1 answer
181 views

const currencies = [ { id: 'USD', name: 'US Dollars' }, { id: 'UGX', name: 'Ugandan Shillings' }, { id: 'KES', name: 'Kenyan Shillings' }, { id: 'GHS', name: 'Ghanian Cedi' },...
61 votes
11 answers
112k views

// if the box is outside the window, move it to the end function checkEdge() { var windowsLeftEdge = $('#window').position().left; $('.box').each( function(i, box) { // right edge of ...
30 votes
6 answers
117k views

I have a select element on my HTML page. I want to populate it with an array. as we can give an array as dataprovider to comboBox in action script. I do the following in HTML... <table> <...
6 votes
3 answers
10k views

I'm working on a small web application that changes the contents of a select drop-down. I was wondering if appendChild() and add() both accomplish the same task on a select DOM object in JavaScript? ...
kevin628's user avatar
  • 3,526
1 vote
5 answers
10k views

How can I, populate a select box based on a variable that will contain data by comma separated values? Example: var x = Jenny,John,Stephanie,Marc,Ryan,Jessica Expected result: [DROP DOWN BOX] Jenny ...
John Smith's user avatar
  • 1,687
2 votes
3 answers
9k views

I am trying to add array elements to dropdownlist using javascript and refered the following links but it did not work: JavaScript - populate drop down list with array use a javascript array to fill ...
user avatar
1 vote
3 answers
3k views

Hello I have a following html <select id="fld_base_profile_id" defaultValue="-1" class="m-wrap span10" field="fld_base_profile_id" appEditor="true"></select> I have this in my ajax $...
-1 votes
1 answer
3k views

How to bind the value from the ajax call to the select option? This is an example of my API https://codepen.io/anon/pen/wNrLZm?editors=1010 I fetched data and need to print in HTML select option? ...
Alex Al's user avatar
  • 156
1 vote
1 answer
2k views

I have a HTML like this <label>Brand</label></br> <select name="brand" id="brand" onChange="changecat(this.value);"> <option value="" selected>Select Brand</...
0 votes
3 answers
2k views

Suppose I have this JSON let array = [ { "Ids": "Sec 1", "details": [ { "id": "5ae82", "...
0 votes
2 answers
2k views

How could I use an array to fill the options in a scrolling list. eg/ <B>Select some fruit:</B> <BR> <SELECT NAME="Morefruit" SIZE="4" MULTIPLE > <OPTION SELECTED> ...
1 vote
4 answers
1k views

I been trying to have an array populate a drop down, I got this examples from this post: JavaScript - populate drop down list with array I'm using this html: <select id="selectNumber"> <...
0 votes
2 answers
661 views

I want a user to select a company and then an employee from this company. I saw similar questions, the most similar is this but I want both inputs to be autocomplete. I have following code: <div ...
0 votes
1 answer
404 views

I had to dynamically populate an HTML select element via the DOM and Javascript. I did a little research and I got things working with no problem, but I had some further questions. I found 2 ...

15 30 50 per page
1
2