QF: hierselect show, hide

From: Date: Thu, 29 Jun 2006 08:31:17 +0000
Subject: QF: hierselect show, hide
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24510@lists.php.net to get a copy of this message
Hi All, Can I show or hide the second select box in a hierselect? If I have a hierselect: $lang_main[0] = "Single lang"; $lang_main[1] = "Multi lang"; $lang_sel[1][0] = "english"; $lang_sel[1][1] = "deutsch"; $opts[] = $lang_main; $opts[] = $lang_sel; $lang =& $form->addElement('hierselect', 'lang', 'Please select:', '', '<br />'); $lang->setOptions($opts); If someone select the "Single lang" option I don't want to show an empty select box. How can I do that? Thanks a lot ZoTyA

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