PDA

View Full Version : Ext InputType not working on field



darrenly
23 Jul 2009, 9:07 PM
Here is my javascript, I want my password field to be a password field.



Ext.onReady(function() {
new Ext.form.TextField({
applyTo: 'username',
inputType: 'password'
});
new Ext.form.TextField({
applyTo: 'password',
inputType: 'password'
});
});


It doesn't mask it though... what is wrong? Why is this not working? Thanks

Condor
23 Jul 2009, 11:15 PM
A field will use the 'name' and 'inputType' of the <input> tag when you use applyTo.