I am using jQuery auto complete to filter a list. On select it display one particular item and hides others
Now i want to add a cross icon to remove this selection, when click on it the input box will be reset and a java script function will be called.

$( "#name_input" ).autocomplete({
source: availableTags,
select: function (event, ui) {
var selectedObj = ui.item;
filterByName(selectedObj.value);
//console.log(selectedObj.value);
}
});
How can i add the cross button on input?