IE8 and JQuery’s trim()

Try this instead:

if($.trim($('#group_field').val()) != ''){

More Info:

Leave a Comment