I have a table like this.I want to fetch it inside the select tag but it's not working exactly what i am looking. I have register handlebar custom helper
selectOption(status, options) {
return options.fn(this).replace(new RegExp(`value=\"${status}\"`), '$&selected="selected"');
},
And inside the edit.hbs file
<select name="getUser" multiple class="form-control selectpicker">
{{#selectOption message.user.id}}
{{#each user}}
<option value="{{this.id}}">{{this.fullName}}</option>
{{/each}}
{{/selectOption}}
</select>
Problem is it's selecting only one user not multiple user on the edit page. how to set multiple select ?