Im struggling on splitting an array into 3 separate td's.
$(runner).find(".third_level .jockey_stats").html(runners[i].jockey_stats);
$(runner).find(".third_level .trainer_stats").html(runners[i].trainer_stats);
jockey_stats & trainer_stats are both arrays which hold 3 pieces of information which render like this:
<td>248-28(11.3%)-35</td>
I would like it to display within the table like this
<td>248</td>
<td>28(11.3%)</td>
<td>35</td>
HTML
<table class="third_level" cellspacing="0" border="0">
<tbody>
<tr>
<th><%= I18n.t("views.wagering.third_level.career_earnings") %></th>
<th><%= I18n.t("views.wagering.third_level.jockey_stats") %></th>
<th><%= I18n.t("views.wagering.third_level.trainer_stats") %></th>
</tr>
<tr>
<% if @third_level_runner %>
<td class="earnings tl_data"><%= number_to_currency(@third_level_runner.total_earnings, :unit => "₪", :precision => 0, :delimiter => ",") %></td>
<td class="jockey_stats tl_data"><%= @third_level_runner.jockey_stats %></td>
<td class="trainer_stats tl_data"><%= @third_level_runner.trainer_stats %></td>
<% else %>
<td class="earnings tl_data">-</td>
<td class="jockey_stats tl_data">-</td>
<td class="trainer_stats tl_data">-</td>
<% end %>
</tr>
</tbody>