SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    prototype and form problem

    I have a form that has some inputs those are created dynamically by names aa_host[0],add_host[1] etc
    My problem is how to find the values of those elements.I use prototypejs framework
    Dimis

  2. #2
    404 aliEn's Avatar
    Join Date
    Oct 2001
    Location
    .au/.sg
    Posts
    394
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    $('form').getElements().each(function(elem) {
    alert(elem.value);
    });
    Use getElements() to get all controls in the form?


Bookmarks

Posting Permissions

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