Results 1 to 4 of 4

Thread: [Resolved] Form Object arrays in Javascript

Threaded View

  1. #1

    Thread Starter
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196

    [Resolved] Form Object arrays in Javascript

    I have a bunch of checkboxes on a page. they are added to the form using server script. the final source looks like

    Code:
    <input id="Documents2_Repeater1__ctl3_0" type="checkbox" value="3996a1f6-7e71-4dbe-b104-6f1abb7a0dfa" />
    
    <input id="Documents2_Repeater1__ctl3_1" type="checkbox" value="3996a1f6-7e71-4dbe-b104-6f1abb7a0dfa" />
    
    <input id="Documents2_Repeater1__ctl3_2" type="checkbox" value="3996a1f6-7e71-4dbe-b104-6f1abb7a0dfa" />
    Is there any way using client Javascript to loop through these checkboxes and add the value field to an array list? I do not know how many checkboxes there will be. It depends on the database.
    Last edited by MasterBlaster; Feb 22nd, 2005 at 03:07 PM.
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width