PDA

View Full Version : Ext.form.Checkbox - try to get the label element



apw
2 Oct 2010, 4:07 PM
Hello Guys,

Im trying to get the label element of a ext checkbox. I found a solution but im 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

laurentParis
3 Oct 2010, 12:14 AM
var label = Ext.getCmp("fav-animal-dog").label;