PDA

View Full Version : Dynamically Changing attribute values



SSTFigleaf
2 Feb 2011, 9:05 PM
I've got a form field with a requited attribute set to true:


{xtype: 'textfield', name: 'fname', label: 'First Name', required: true},

Is there a method for dynamically changing the value of the "required" attribute (or any attribute for that manner) based on an onChange event.

thanks all in advance