javascript with input arrays...
Posted: Tue May 23, 2006 4:07 pm
I have some code where I am creating an array of textareas based a number of items. So there could be anywhere from 1 and up...
I also want to limit the amount of text that can be entered into the text areas.
I found some code on http://www.mediacollege.com/internet/ja ... cters.html to do that...
but it doesn't seem to be working with the array of textareas.
Right now for testing, i am having it just use 1 textarea. So when i change the name so that it does a "name_1" instead of "name[1]" the javascript works just fine... Thing is... there are so many places where i am alreadying accessing the textareas as arrays, and I just don't want to change it all.
If there is a way to allow me to use the variabled textareas, I will greatly appreciate all the help i can get.
But if that isn't possible... I thank you all anyway.
Thanks in advanced.
I also want to limit the amount of text that can be entered into the text areas.
I found some code on http://www.mediacollege.com/internet/ja ... cters.html to do that...
but it doesn't seem to be working with the array of textareas.
Right now for testing, i am having it just use 1 textarea. So when i change the name so that it does a "name_1" instead of "name[1]" the javascript works just fine... Thing is... there are so many places where i am alreadying accessing the textareas as arrays, and I just don't want to change it all.
If there is a way to allow me to use the variabled textareas, I will greatly appreciate all the help i can get.
But if that isn't possible... I thank you all anyway.
Thanks in advanced.