PDA

View Full Version : to add custom attribute



saied_hai2006
19 Aug 2009, 8:32 PM
Hi,
I need to add one new attribute named 'valid' in Ext.form.TextField, which is user defined one..
Can anyone help me out to find a solution

Eg.

new Ext.form.TextField({
id:'firstText',
name:'firstName',
valid:function(){alert('hi');}
});