Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

Styling Editor input field with bootstrap has-success, has-warning, has-error and glyphicon-ok etc.

$
0
0

Is it possible to add a span behind the DTE input field and additional css classes depending on different values? So that the input looks like:

<div class="DTE_Field_InputControl has-success has-feedback" data-dte-e="input-control" style="display: block;">
    <input id="DTE_Field_status" class="form-control" type="text">
        <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true">
</div>

Based on Bootstrap Example 'Input with Success' (http://getbootstrap.com/css/#forms ):

<div class="form-group has-success has-feedback">
    <label class="control-label">Status:</label>
    <input type="text" id="Status" class="form-control">
    <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span>
</div>

If yes, what's the best way to do this?


Viewing all articles
Browse latest Browse all 3740

Trending Articles