Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to fill html datalist with array values in javascript

let str='';
let htmlstring = Names.forEach((name) => {
            str += '<option value="' + name + '" />';
          });

//paste var str into html 
Source by www.plus2net.com #
 
PREVIOUS NEXT
Tagged: #fill #html #datalist #array #values #javascript
ADD COMMENT
Topic
Name
8+5 =