trim all spaces jquery code example Example: $(this).text() in jquery return white space var emailAdd = $.trim($(this).text());