Skip to main content
cleaned it a bit.
Source Link
DW333
  • 115
  • 1
  • 2
  • 7

I found that this is simple and works great.

for (var i = 0; i < array.length; i++) { $('#clientsList').append($("<option></option>").text(array[i].textClientName).val(array[i].valueID)); }; 

I found that this is simple and works great.

for (var i = 0; i < array.length; i++) { $('#clientsList').append($("<option></option>").text(array[i].text).val(array[i].value)); }; 

I found that this is simple and works great.

for (var i = 0; i < array.length; i++) { $('#clientsList').append($("<option></option>").text(array[i].ClientName).val(array[i].ID)); }; 
added 18 characters in body
Source Link
DW333
  • 115
  • 1
  • 2
  • 7

I found that this is simple and works great.

for (var i = 0; i < array.length; i++) { $('#clientsList').append($("<option></option>").text(array[i].text).val(array[i].value)); }; 

I found that this is simple and works great.

for (var i = 0; i < array.length; i++) { $('#clientsList').append($("<option></option>").text(text).val(value)); }; 

I found that this is simple and works great.

for (var i = 0; i < array.length; i++) { $('#clientsList').append($("<option></option>").text(array[i].text).val(array[i].value)); }; 
Source Link
DW333
  • 115
  • 1
  • 2
  • 7

I found that this is simple and works great.

for (var i = 0; i < array.length; i++) { $('#clientsList').append($("<option></option>").text(text).val(value)); };