Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image submit

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I have an image and 2 select boxes. On click of the image i just want to shift the values from one select box to another. I have all the JS for this. It owrks fine with buttons, but for images the whole form is submitting...how can i prevent form submit for this image click and execute only JS...

Am using struts
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
onclick="yourFunction();return false;"
 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic