PDA

View Full Version : Form Field Limiter w/ 2 text areas



aaronmack
07-08-2005, 10:28 PM
Script: DD Form Field Limiter
http://www.dynamicdrive.com/dynamicindex16/limitinput.htm

I am interested in getting the script to count two inputs or text areas using one limit. I have tried even hardcoding the input names into the script, but am a newb when it comes to javascript.

Can anyone point me towards what areas I would need to modify? I have been looking into the countlimit function but my biggest problem is that i don't fully understand javascript syntax. For instance, the first line in displaylimit is this

var theform=theid!=""? document.getElementById(theid) : thename
If anyone could translate that into pseudocode I'd sure appreciate it.

Thanks

Twey
07-09-2005, 11:57 AM
Is theid not blank? If so, set the new local variable theform to the element with an id of theid; otherwise, set it to the content of thename.

aaronmack
07-09-2005, 03:34 PM
ah ok thanks twey