• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about multibutton submit

 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey! everyone.
I have some question about submit,I have gotten a Nodelist by parsing xml string,I construct lots of button who own name+i and value,when I click one of them,I hope I can send this value to Servlet.
I wonder if anyone is familiar with it and could give mi some advice on
how to do it.
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on the other side,Im unwilling using javascript statement.
 
Ankit C
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its very easy, you have to use in your button
<input type="submit" value="yourValue" name="yourName"/>
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much!
If I use button type,can I implement it?
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to make your questions in the correct forum, this topic belongs to HTML/Javascript.
BTW, try:
input type="button" value="yourValue"
and add an onclick event: "submit()"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic