IE seems to lock up with this code, and I can't figure out why. It works fine in FF and Chrome:
<input type="text" class="form-control" placeholder="Username Search" name="uname" id="uname" value="">
Script:
$('#uname').on('input', function() {
$.get('?go=more_users&searchby=username&searchterm='+encodeURIComponent($('#uname').val()),function (result)
{
$('#main-block').html(result);
$('#uname').focus();
tmpStr = $('#uname').val();
$('#uname').val('');
$('#uname').val(tmpStr);
}
);
});
Once I put the mouse in the input box, it locks right up. I see no errors or messages in the console and the server log shows nothing.
Any ideas?