[thelist] Dumb Question (Javascript) but still causing difficulties

jsWalter jsWalter at torres.ws
Tue May 11 14:58:07 CDT 2004


> -----Original Message-----
> From: thelist-bounces at lists.evolt.org 
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Rob Smith
> Sent: Tuesday, May 11, 2004 2:38 PM
> To: Thelist (E-mail)
> Subject: [thelist] Dumb Question (Javascript) but still 
> causing difficulties
> 
> 
> Hi,
> 
> I'm having a slightly stubborn problem with a particular 
> checkbox issue:
> 
> <input type="checkbox" name="Something" value="Something 
> else" checked onFocus="blur()">
> 
> Ok. This checkbox is supposed to be checked initially, but at 
> the same time, the user cannot uncheck this checkbox. Don't 
> ask why, it's just supposed to act this way. Specifically, "I 
> don't care how many times the user clicks on that checkbox, 
> it is not supposed to uncheck."

This works for me...

<input type="checkbox"
       name="Something"
       value="Something else"
       checked
       onClick="javascript:this.checked='true'">

Walter




More information about the thelist mailing list