Bootstrap Input-prepend

Bootstrap Input-prepend

goinupgoinup Posts: 2Questions: 0Answers: 0
edited February 2013 in Feature requests
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

Replies

  • girishmrgirishmr Posts: 137Questions: 0Answers: 0
    Yes its possible

    Please refer http://twitter.github.com/bootstrap/base-css.html#forms for both append and prepend
  • mchambaudmchambaud Posts: 1Questions: 0Answers: 0
    edited March 2013
    Here's how I did it.

    [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]
This discussion has been closed.