JSFiddle - React, Tailwind, and code Playground

HTML

<table><tbody id="addto_tb"></tbody></table>

JavaScript

var nodesList = ['node1','node2','node3'];
var select =  $('<select/>');
 $('<option />', {value: 'node1', text: 'node1'}).appendTo(select);	
 $('<option />', {value: 'node2', text: 'node2'}).appendTo(select);	
  	
$(nodesList).each(function(iter,elem){

							var trEle = $(document
									.createElement("tr"));
							trEle.addClass(" "+iter);
							var tdEle = $(document
									.createElement("td"));
							$(tdEle).append(select);
							trEle.append(tdEle);							
							$('#addto_tb').append(trEle);
							$($($('#addto_tb').find("."+iter)).find('select')).val(elem);
						});