Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > disabling form input elements

Reply
Thread Tools

disabling form input elements

 
 
Bill
Guest
Posts: n/a
 
      11-02-2003
Hi.

Is there any way to make form input elements inactive, ie to disable them?

I've seen such a thing in VB but can't find anything in HTML/Javascript
references.

Thanks.


 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      11-02-2003
"Bill" <(E-Mail Removed)> writes:

> Is there any way to make form input elements inactive, ie to disable them?


There are different ways, depending on what you mean by disable:

formElem.disabled = true;

Setting it "disabled" means that you can't use it (edit text, click
button), and it isn't sent when the form is submitted.

formElem.readOnly = true;

A text (input/textarea) can be set readOnly. Then it just can't be
changed, but is still submitted.

> I've seen such a thing in VB but can't find anything in HTML/Javascript
> references.


What did you write in VB?

/L
--
Lasse Reichstein Nielsen - http://www.velocityreviews.com/forums/(E-Mail Removed)
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling Form Elements shankwheat Javascript 11 10-20-2006 01:43 AM
newb: recurse over elements children and disable all form elements SteveKlett@gmail.com Javascript 4 09-20-2006 07:42 AM
disabling form elements in IE omidmottaghi Javascript 4 10-30-2005 07:38 AM
Disabling auto-populating of form elements Jason Galvin ASP .Net 1 12-10-2003 06:49 AM
disabling form elements Kevin Blount Javascript 0 12-04-2003 09:26 PM



Advertisments