View Full Version : finding the value of the first line of a textarea
03-17-2004, 10: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, 10:54 PM
I think this will work (untested)
Try it out?
03-17-2004, 11: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, 04:36 AM
var newline = (document.all) ? '\r\n':'\n';
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.