Recently, I came across a useful jQuery filter example that sparked my interest. To test it out, I created my live example and shared the code on CodePen (or you can check out the Fiddle if you prefer).
One issue I encountered was that after entering text in the input field, the boxes would realign but the numbers wouldn't reappear when the text was deleted unless the page was refreshed. I played around with the code snippet below, but couldn't find a solution. Your help is greatly appreciated!
$('#sortable').change(
function(){
if ($(this).val().length) {
$('#number').hide();
}
else {
$('#number').show();
}
});