I\'m using jquery, and I have a textarea. When I submit by my button I will alert each text separated by newline. How to split my text when there is a newline?
It should be
yadayada.val.split(/\n/)
you're passing in a literal string to the split command, not a regex.