www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to iterate over all <textarea>....</textarea> elements on a webpage?

  1. #1
    Join Date
    Oct 2013
    Posts
    5

    How to iterate over all <textarea>....</textarea> elements on a webpage?

    I would like to change something at all <textarea ....>....</textarea> elements reps their content of a webpage.

    How do I iterate with a loop over all these elements with JavaScript?

    Peter

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    Code:
    var tareas=document.getElementsByTagName('textarea');
    for(var i=0;i<tareas.length;i++){
    bla-bla-bla
    }
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles