Reply to Re: Disable checkbox

Your name:

Reply:


Posted by Markus Ernst on 02/17/06 19:40

ZeldorBlat schrieb:
> Michael wrote:
>
>>I think it is disabled="true" that you want to use. That should work, I
>>think.
>
>
> HTML style:
> <input type="checkbox" name="foo" disabled>
>
> XHTML style:
> <input type="checkbox" name="foo" disabled="disabled"/>
>

Disabled and readonly are different things - IIRC the values of readonly
elements are submitted while the values of disabled elements are not. So
the OP could run into problems in the case of:

<input type="checkbox" name="foo" value="1" checked disabled>

In this case readonly is definitely the correct attribute. Internet
Explorer seems not to support readonly, though, which is a bug.

Anyway as this is not a PHP topic there might more detailed information
to be found in an HTML group.

--
Markus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация