how to remove whitespace in jquery code example Example: $(this).text() in jquery return white space var emailAdd = $.trim($(this).text());