HTML_QuickForm: don't understand how to use updateElementAttr

From: Date: Wed, 26 May 2004 12:43:08 +0000
Subject: HTML_QuickForm: don't understand how to use updateElementAttr
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12741@lists.php.net to get a copy of this message
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

« previous php.pear.general (#12741) next »