PDA

View Full Version : onItemTap event for textfield



Shranes
16 Jul 2011, 6:30 AM
hey guys..

i hav three textfields in a row.. if i tap on one of them, the other two needs to be disabled..

xtype: 'textfield',
name: 'txtName',
label: 'Name',
required: false,
useClearIcon: false,
onItemTap: function() {
Ext.getCmp('txtTer').setDisabled(true);
}



i cant figure out why this doesn't work..plz help me if u know..