select option property not working

Posted 1 year ago by muazzamazaz
<select name="notificationtype" required class="form-control">
    <option value="sms" @if($template->type=='sms') "selected=true" else "selected=false" @endif > SMS </option>
    <option value="email" @if($template->type=='email') "selected=true" else "selected=false" @endif > Email </option> 
</select>

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.