View Full Version : TextField event over the whole field
eugenparaschiv
25 Aug 2008, 6:53 AM
Hy. I have a problem the events on a TextField. How do I register a ONMOUSEOVER event on a TextField so that it is triggered not only over the input, but over the label as well. Can this be done without overriding TextField, simply by sinking the event in some way or another? Thanks.
gslender
25 Aug 2008, 12:57 PM
when a textfield is used with formlayout, the label is not really part of the field widget - two elements are added to the dom and I'm guess you'd need to consider that when trying to grab a mouseover event for both items
eugenparaschiv
26 Aug 2008, 10:28 PM
I see. I though it was just one element. What I need to do is be able to select the whole visual element when I click on it, like in a visual editor. If two elements form the TextField, that means that I will have to select them individually. But even so, I still would like to find out how I can sink an event (ONCLICK) and listen to it on the label of the field.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.