In jsp, if there is a hidden variable, we do this in js:
document.getElementById('hiddenVarId').setValue = 'xxx';
What is the extjs equivalent of document.getElementById().setValue = 'xxx';
Ext.get('hiddenVarId').set({value: 'xxx'});
This another possibility that leverages the ExtJS method set(). This way you can set multiple attributes on an Ext.Element at once if that's something you also require now or later.
Ext.getCmp('hiddenVarId').setValue('xxx');
Ext.get() vs Ext.getCmp()