var tb = $('#tb'); // the toolbar containervar sb = $('<input>').appendTo(tb); // append the search box to the toolbarsb.searchbox({ //...});