Changed to, to access string of element instead of actual jQuery element.