So I am using textareas in a form to taking a list.
<tr>
<td><label asp-for="Ingredients"></label></td>
<td><textarea asp-for="Ingredients" ></textarea></td>
<td><span asp-validation-for="Ingredients"></span></td>
</tr>
In my viewModel I have
[Required]
public string Ingredients { get; set; }
In the details it is called using
<div style="margin-left:15px"><u>Instructions:</u> <br />
@Model.Instructions</div> <br />
It ends up displaying like:
item 1, item 2, item 3
I want it to display like:
item1
item2
item3
So how do I split the ingredients at the commas without displaying them while dropping them down a line each?
");` maybe? – Rufus L Feb 20 '18 at 22:54
` – rene Feb 20 '18 at 22:57