Re: Re: checkboxes
| From: | Ashley Sheridan | Date: | Wed, 22 Apr 2009 05:03:47 +0000 |
| Subject: | Re: Re: checkboxes | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291794@lists.php.net to get a copy of this message | ||
On Wed, 2009-04-22 at 07:17 +0530, kranthi wrote:
> yeh an onclick event handler is required to achieve this. but as Shawn
> has suggested radio buttons are better in this case.
>
> but then again if u want to disable/greyout the other input(like
> textboxes, other than the radio button itself) u'll hav to use onclick
> event handler for the radio buttons
>
Not necessarily, you could use CSS to change the background colour:
input[checked=checked]
{
set styles here
}
Ash
www.ashleysheridan.co.uk