<select class="form-control updateElement" id="selectn" data-placeholder="Select..." data-id="{$id}" data-colName="sid" data-tableName="ultrasound">
    <option></option>
    {foreach $allSname as $sname}
    <option value="{$sname.user_id}">{$sname.user_name}</option>
    {/foreach}
</select>


{literal}
<script type="text/javascript" >

    $('#selectn').select2({placeholder: "Select", allowClear: true});


</script>
{/literal}