codeigniter - jQuery autocomplete retrieve with an image -


i need using autocomplete image inside result (similar how facebook's autocomplete works). however, want start basics... great example found here: http://jsfiddle.net/k5q5u/249/

    <input id="auto" type="text" />  css:      img { width: 25px; height: 25px; padding-right: 10px;}     .ui-autocomplete > li { height: 40px; }  javascript:      $(document).ready(function () {       $("#auto").autocomplete({         source: function (request, response) {             $.ajax({                 url: "http://api.stackoverflow.com/1.1/users",                 data: {                     filter: request.term,                     pagesize: 10                 },                 jsonp: "jsonp",                 datatype: "jsonp",                 success: function(data) {                     response($.map(data.users, function(el, index) {                         return {                             value: el.display_name,                             avatar: "http://www.gravatar.com/avatar/" +                                 el.email_hash                         };                     }));                 }             });         }     }).data("uiautocomplete")._renderitem = function (ul, item) {         return $("<li />")             .data("item.autocomplete", item)             .append("<a><img src='" + item.avatar + "' />" + item.value + "</a>")                 .appendto(ul);     };    `enter code here` }); 

however, how can use create using localhost? there code examples jquery? i'm using codeigniter framework.

here nice tutorial autocomplete using codeigniter framework .can tell me version of codeigniter using.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -