Re: Dynamic Dropdowns
| From: | David Otton | Date: | Fri, 21 Feb 2003 17:46:10 +0000 |
| Subject: | Re: Dynamic Dropdowns | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136547@lists.php.net to get a copy of this message | ||
On Fri, 21 Feb 2003 10:37:42 -0700, you wrote:
>>Quoting Steven Kallstrom <StevenKallstrom@insightbb.com>:
>> I am creating dynamic drop down lists... I would like to have an
>> option appear in the drop down list, but have it greyed-out and not be
>> selectable... I know you can disable selects, but I don't think you can
>> disable individual options in selects... anyone have any ideas?
>Oh! Yes you can:
>
><option disabled value="value">Some Value</option>
Don't assume any data returned from a disabled field will be correct. It
is easy to send malicious data to the form handler, and not all browsers
support the disabled attribute.