PDA

View Full Version : lists and text fields



dajesterofdeath
Mar 17th, 2007, 11:50 AM
hi im a bit of a noob but was wondering how to get a set data from a list that when double clicked it paste that data into a text field that also has a button to copy whats in the text field to clipboard and a button to reset the textfield
so eg.

list____
data1 | when double click paste to the textfield below
data2 |
data3 |
data4 |
______|

text field/area

Pepejeria
Mar 17th, 2007, 08:37 PM
You can do this by assigning a double click handler to the dropdown. Reset button should be simple to, just clear that field value by setting it to an empty string.

You cannot copy the text to the clipboard in all browsers though.