-
2 Oct 2010 4:07 PM #1
Ext.form.Checkbox - try to get the label element
Ext.form.Checkbox - try to get the label element
Hello Guys,
I´m trying to get the label element of a ext checkbox. I found a solution but i´m not happy with it.
My solution:
labelEl = Ext.get("x-form-el-fav-animal-dog").child("label.x-form-cb-label");
So i hope somebody have a better solution.
Checkbox id: 'fav-animal-dog'
Best Regrads
Andy
-
3 Oct 2010 12:14 AM #2
Code:var label = Ext.getCmp("fav-animal-dog").label;
Similar Threads
-
Ext 2.2 - Checkbox label click does not change value
By smit_al in forum Ext 2.x: Help & DiscussionReplies: 10Last Post: 26 Apr 2009, 9:58 PM -
In EXT2.0 I used the Component EXT.form.Label-Doubts in EXT.form.Label
By sorna_lavanya in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 26 Sep 2008, 1:31 AM -
Form Element Events : fired on label also
By ext_fan in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 5 Aug 2008, 6:39 PM -
Does the Ext.form.Field fieldLabel method generate a proper <label> HTML element?
By weyus in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 13 Jul 2008, 11:25 PM -
Hiding form element with label
By KajaSheen in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 28 Apr 2008, 7:59 PM


Reply With Quote