Bootstrap Input-prepend

Bootstrap Input-prepend

goinupgoinup Posts: 2Questions: 0Answers: 0
edited February 2013 in Feature requests

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.



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

    Please refer for both append and prepend
  • mchambaudmchambaud Posts: 1Questions: 0Answers: 0
    edited March 2013
    Here's how I did it.

    "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("");
This discussion has been closed.