Bootstrap Input-prepend
Bootstrap Input-prepend
goinup
Posts: 2Questions: 0Answers: 0
Hi-
I was wondering if it was possible in the Bootstrap example, to specify custom HTML for the search input? I'd like to add an input-prepend with a font-awesome icon in it.
-greg
I was wondering if it was possible in the Bootstrap example, to specify custom HTML for the search input? I'd like to add an input-prepend with a font-awesome icon in it.
-greg
This discussion has been closed.
Replies
Please refer http://twitter.github.com/bootstrap/base-css.html#forms for both append and prepend
[code]
"fnDrawCallback": function () {
var selector = "#List_wrapper .dataTables_filter";
if ($('#UserList_wrapper .dataTables_filter .input-prepend').length == 1) return;
$('input', selector).unwrap().wrap("");
$('.input-prepend', selector).prepend("");
}
[/code]