|
User #293650 177 posts
Forum Regular
|
I have the code below so far, and am sure there must be an easier way to automatically create the var fieldnames of AA, AB, AC etc and relate them to the <form> area, but I am stuck. Any ideas or better ways of doing this as there are going to be 80 or so fieldnames? I have AA, AB etc, but they can be anything as long as they relate to the form id. <script type="text/javascript" language="javascript"> <br /> |
reference: whrl.pl/RccCIW
posted 2010-Mar-14, 9am AEST
|
|
User #213300 3203 posts
Whirlpool Forums Addict
|
jQuery. You can wrap all those inputs in a fieldset, or a div, or put a class name against them. Assuming you put a class name of 'total-inputs'. $('.total-inputs').each(function(i, e)
|
reference: whrl.pl/RccCJG
posted 2010-Mar-14, 9am AEST
|
|
User #293650 177 posts
Forum Regular
|
Thanks for that. Actually, I wasn't thinking about jQuery and your post prompted me. I actually found this just in case anyone is trying to do what I'm doing. It's a jQuery plugin: |
reference: whrl.pl/RccC2r
posted 2010-Mar-14, 11am AEST
edited 2010-Mar-14, 11am AEST
|