').attr('id', 'myselect'); jQuery('body').append(select); jQuery('.info tbody tr').each(function(index){ option = jQuery('') .attr('value', jQuery(this).find('td:first').html()) .html(jQuery(this).find('td:last').html()); select.append(option); }); ">