Jump to content

Zend_Form_Element setting another elements attribute


Garethp

Recommended Posts

Hey guys, I'm busy creating my own type of form element, just something that extends from Text in order to do some background stuff, and I was wandering how I can use that element to alter the attributes of another element. I was hoping for something like $this->getForm()->getElement('ElementName').setAttr('onClick', 'something'); but I couldn't find something similar to getForm() in the Zend API. Any help would be appreciated

  • 4 weeks later...
  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.