(SOLVED Trying to populate a dynamic table row with a select input populated by a helper


#1

I was hoping someone can help me with this issue I’m having with a blaze template. I’m trying to add rows dynamically in a table and inside of the cell i’m attempting to add a dynamic select box. Not sure if I can do this or if I’m doing something wrong. If I don’t add a select populated by a helper it work fine. Has any one tried something like this before?

The code did not paste correctly but i’m including an each statement that populates my option values.

‘click .add_row’: function(e, t) {
e.preventDefault();
$(’#match’+i).html("

123{{#each teams}}{{fullName}}{{/each}}
");
  $('#tab_logic').append('<tr id="match'+(i+1)+'"></tr>');
  i++;

}


#2

Had a Typo in my string where I never close the html fucntion