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