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