For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2004 > HTML_QuickForm: don't understand how to use updateElementAttr









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTML_QuickForm: don't understand how to use updateElementAttr
Robert

2004-05-26, 9:37 am

Hi,

once again: I'm trying to set the attribute "disabled" for a checkbox in
a group of checkboxes:

....
$c = & HTML_QuickForm::createElement('checkbox'
, 'school', null, '<span
class="chkboxText">Tanzschule</span>');
if($aUserData["has_school"] == 1) $c->setChecked(true);
$oForm->updateElementAttr(array("school"), "disabled='disabled'");
$aWeAreACheckbox[] = $c;
....

But it doesn't work. What's wrong?

Thanx
Robert
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com