Re: using the HTML_QuickForm::updateElementAttr()

From: Date: Wed, 23 Mar 2011 17:37:02 +0000
Subject: Re: using the HTML_QuickForm::updateElementAttr()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31038@lists.php.net to get a copy of this message
Hi, On 23.03.2011 18:14, zia mohades wrote:
I am currently using the Html quickform and would like to modify a quickform element based on a given value ( i.e larger than 10) and then setting it bold if it meets the requirement, as follows: $select1 = $this->form->addElement('static','within_range','Within the window'); if ($value> 10){
     $array1 = array("within_range"=>"<b></b>");
     $this->form->updateElementAttr($select1, $array1);
}
if ($value > 10) {
    $select1->setText('<b>Within the window</b>');
}

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