Source for file attributes.php
Documentation is available at attributes.php
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>HTML_Select demo: attributes</title>
<form method="get" action="#">
<label for="color">Select a color:</label>
* Demo for HTML_Select with multiple attributes
//you do *not* need the following line!
require_once 'HTML/Select.php';
//with addOption, you can specify additional attributes
$hs->addOption ('red', '#FF0000', false , array ('style' => 'color: #F00'));
$hs->addOption ('green', '#00FF00', false , array ('style' => 'color: #0F0'));
$hs->addOption ('blue', '#0000BB', true , array ('style' => 'color: #00F'));
$hs->addOption ('orange', '#FF8000', false , array ('style' => 'color: #FF8000'));
Documentation generated on Mon, 11 Mar 2019 15:47:40 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|