Two Laptop Bag*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to map onclick to another input element
 
Similar Threads
two dropdown menus
javascript error: object expected
Copy and Paste from EXCEL to HTML Text Input
Javascript error
jquery accordion is causing jquery treeview picker to breakup