This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Image submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Image submit" Watch "Image submit" New topic
Author

Image submit

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
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

Joined: Nov 08, 2001
Posts: 15385
    
    6
onclick="yourFunction();return false;"
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
thx
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Image submit
 
It's not a secret anymore!