IT Community - Software Programming, Web Development and Technical Support

How can I disable form fields?

This is a discussion on How can I disable form fields? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; How can I disable form fields?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 03-22-2008, 01:02 AM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 125
GDevakii is on a distinguished road
Question How can I disable form fields?

How can I disable form fields?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-23-2008, 08:03 PM
saravanan saravanan is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Posts: 180
saravanan is on a distinguished road
Default Re: How can I disable form fields?

add attribute disabled="disabled" in the form fields.
this works fine
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-24-2008, 07:45 PM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 125
GDevakii is on a distinguished road
Smile Re: How can I disable form fields?

function start() {
myform.tx.disabled = true;
}
onload = start;
function chgtx() {
myform.tx.disabled = !myform.cb.checked;
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-24-2008, 11:47 PM
pav pav is offline
D-Web Trainee
 
Join Date: Jun 2008
Posts: 8
pav is on a distinguished road
Default Re: How can I disable form fields?

get samples to help you from ICT Consultants - Home Page
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 06-24-2008, 11:49 PM
pav pav is offline
D-Web Trainee
 
Join Date: Jun 2008
Posts: 8
pav is on a distinguished road
Default Re: How can I disable form fields?

get fast samples from ICT Consultants - Home Page
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 07-13-2008, 05:10 PM
sweet12 sweet12 is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 3
sweet12 is on a distinguished road
Default Re: How can I disable form fields?

What are you talking about Please tell detail
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 07-15-2008, 03:40 AM
sweet15 sweet15 is offline
D-Web Trainee
 
Join Date: Jul 2008
Posts: 6
sweet15 is on a distinguished road
Default Re: How can I disable form fields?

Go to w3school you can learn about that
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 12-12-2008, 04:48 AM
levelup3 levelup3 is offline
D-Web Trainee
 
Join Date: Dec 2008
Posts: 7
levelup3 is on a distinguished road
Default Re: How can I disable form fields?

Thanks for all your post
__________________
[
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 01-29-2009, 01:52 AM
smith21 smith21 is offline
D-Web Trainee
 
Join Date: Dec 2008
Posts: 13
smith21 is on a distinguished road
Default Re: How can I disable form fields?

Well... you can always enable/disable/re-enable your input fields using JavaScript.

document.getElementById(id).disabled = true;
document.getElementById(id).disabled = false;
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 02-02-2009, 07:40 PM
hkp819 hkp819 is offline
D-Web Trainee
 
Join Date: Dec 2008
Posts: 41
hkp819 is on a distinguished road
Default Re: How can I disable form fields?

you will take help from this link...
Disable Form Fields
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
popup date selector return dates to different form fields. itbarota HTML, CSS and Javascript Coding Techniques 3 01-08-2008 09:19 PM
How can I reset the value of form fields if the page is revisted? itbarota HTML, CSS and Javascript Coding Techniques 2 12-05-2007 03:48 AM
How do I use my own graphic button to reset all the text fields in a form? Pvinothkumar HTML, CSS and Javascript Coding Techniques 1 11-01-2007 11:02 PM
Appearance of Form Fields. itbarota HTML, CSS and Javascript Coding Techniques 13 10-05-2007 07:59 AM
How you Disable Form Validation When Using ASP.NET Web Controls? Archer ASP and ASP.NET Programming 1 07-23-2007 11:42 PM


All times are GMT -7. The time now is 06:20 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0