Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Disabled Text Box or Dynamic Div or Something


Message #1 by "Jerry Diegel" <diegelj@g...> on Wed, 17 Jul 2002 14:03:54 -0500
hi chris,
   you can use readonly as mentioned below.
	   <input type="text" name="textfield3" onfocus
"this.readOnly=true;">
   This will work fine. And better suits  for Your need.

Regards,
Maheedhar

> -----Original Message-----
> From:	Chris Scott [SMTP:chris@e...]
> Sent:	Monday, July 22, 2002 1:06 PM
> To:	javascript
> Subject:	[javascript] RE: Disabled Text Box or Dynamic Div or
> Something
> 
> Hi Yuji,
> 
> > hi all:
> > I have try this method but it seem it is no working.
> > this is what I wrote
> > <input type="text" name="textfield3" onfocus= this.blur>
> > Have I miss anything??
> 
> Try...
> 
> <input type="text" name="textfield3" onfocus="this.blur();">
> 
> HTH,
> 
> Chris
> 
> 
> 
> ---
> 
> Improve your web design skills with these new books from Glasshaus.
> 
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20

  Return to Index