This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to map onclick to another input element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to map onclick to another input element" Watch "How to map onclick to another input element" New topic
Author

How to map onclick to another input element

anfun wong
Greenhorn

Joined: Aug 24, 2006
Posts: 6
On a page I manages some items. Each line looks like this:

| item_1 | (link)[removeButton.gif] | (link)Remove |

Clicking on each button will remove the item displayed to its left. This is done by passing the item name in the request, as in the following code, and it works. I want to be able to click on the text "Remove" for the same functionality as well, but can't get it to work. Any tips or sample snipplet will be appreciated.

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Are you are talking about the no script text?
anfun wong
Greenhorn

Joined: Aug 24, 2006
Posts: 6
I mean when javascript is enabled, the "Remove" text link should work. When javascript is disable, it is not expected to work.
 
jQuery in Action, 2nd edition
 
subject: How to map onclick to another input element