Jump to content

dhie_20

Members
  • Posts

    2
  • Joined

  • Last visited

dhie_20's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. oups, I had put a wrong condition for "i". that's correct. the "i" should be less or equal than "10".Mr. Moderator, this is a very interesting code. I see that the first step I have to do is to collect all <INPUT TYPE=TEXT> tag into an array. If I have the array, then I could assign each value one by one. very niceBut, I hava a few question :1. I see two method/function used there (getElementsByTagName and parentNode). Where can I get the full list and description of all method in Javascript?2. what is the initial value for "zoop"? Thanks moderator for the codeI'm very appreciate it regards,-d20-
  2. Hi, I'm a new comer here.I would like to ask, how to access form's components within looping.supposed I have 10 Text Input Type in a form, and I want to change the value of TEXT Type components using Javascript like this:document.form1.text_1.value="hello";document.form1.text_2.value="hello";document.form1.text_3.value="hello";...... until text_10I had tried to optimize the code by using the "for" loop like this, but it didn't work at all :for (i=1;i>=10;i++) { document.form1.text_+i+.value="hello"; }does anyone know how to solve this problem by using javascript? I need this trick so much . Thank You so much guys
×
×
  • Create New...