I have a text box that is being used as a search filter for a group of Isotope items.
I want a simple button that when clicked, clears the text entered into the text box BUT also then replicates the same as pressing 'Enter' on the keyboard. Currently just clearing the text does not register with the isotope sorting so I need it to replicate pressing 'Enter' after it has cleared the value.
$('#clear_input').click(function () {
$('#quicksearch').focus();
$('#quicksearch').val('');
// something here to replicate pressing enter inside #quicksearch
Any ideas?