SitePoint Sponsor

User Tag List

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

    Angry Counting the dynamically created controls

    Hello Friends,
    I am generatingsome textbox controls in html dynamically according to the need. the no is not known . and all controls are having the same name. i want to pass teh valus of the controls one bye one through java script by counting the no of control . does any body have some sugession. please tell

    Regards
    Nirakar

  2. #2
    SitePoint Enthusiast saadatshah's Avatar
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This will give you the number of elements having the name "txt"

    document.forms["frm"].elements["txt"].length
    Traffic School - Driver Ed - Defensive Driving
    Texas Defensive Driving - Online Traffic School
    Real Estate License
    Science is organized knowledge. Wisdom is organized life.


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
  •