View Full Version : finding the value of the first line of a textarea
03-17-2004, 09:50 PM
i know that you can find the value of a textarea by going like:
but i need an array to hold the values of all the different lines written.
is this possible?
if so, how?
03-17-2004, 09:54 PM
I think this will work (untested)
Try it out?
03-17-2004, 10:04 PM
well it worked!
ill be darned, but can you explain why? i know what \n does but i dont know what /g is and stuff.
03-18-2004, 03:36 AM
var newline = (document.all) ? '\r\n':'\n';
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.