<tr>
    <td>
        <input type="text" class="form-control datepicker updateElement" data-id="{$record->id}" data-colName="date" data-tableName="records" value="{$record->date}" readonly/>
    </td>
   <td>
        <textarea class="form-control updateElement" rows="2" data-id="{$record->id}" data-colName="diagnosis" data-tableName="records" placeholder="Enter more text">{$record->diagnosis}</textarea>
    </td>
    <td>
        <textarea class="form-control updateElement" rows="2" data-id="{$record->id}" data-colName="ttt" data-tableName="records" placeholder="Enter more text">{$record->ttt}</textarea>
    </td>

    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$record->id}" style=" float: left;" href="#" data-link="record" data-fn="del">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>


{literal}
<script type="text/javascript" >        
        $('.datepickertoday').datepicker('setDate', '+0');
        $(".datepicker").datepicker({
            todayBtn: "linked",
            autoclose: true,
            todayHighlight: true,
            format: 'yy-mm-dd',
            isRTL: true
        });
</script>
{/literal}
