don't know how to use updateElementAttr

From: Date: Sun, 23 May 2004 16:11:57 +0000
Subject: don't know how to use updateElementAttr
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12690@lists.php.net to get a copy of this message
Hi, 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 (#12690) next »