473,385 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Disable form objects without disabling form object submition

How can I make an input box (or other objects) disabled or greyed out and
still have them submit in the form?

Thanks
Jul 23 '05 #1
6 1764
Nevermind readonly works great!

Thanks
"Scott Phelps" <do********@hotmail.com> wrote in message
news:d3**********@news.xmission.com...
How can I make an input box (or other objects) disabled or greyed out and
still have them submit in the form?

Thanks

Jul 23 '05 #2

Ok how do I make readonly greyed out?

Thanks
"Scott Phelps" <do********@hotmail.com> wrote in message
news:d3**********@news.xmission.com...
Nevermind readonly works great!

Thanks
"Scott Phelps" <do********@hotmail.com> wrote in message
news:d3**********@news.xmission.com...
How can I make an input box (or other objects) disabled or greyed out and
still have them submit in the form?

Thanks


Jul 23 '05 #3
"Scott Phelps" <do********@hotmail.com> wrote in
news:d3**********@news.xmission.com:
How can I make an input box (or other objects) disabled or greyed out
and still have them submit in the form?

Thanks


Not sure, but <input ... disabled> still gets submitted, doesn't it?
Jul 23 '05 #4
Scott Phelps wrote:
Ok how do I make readonly greyed out?

Thanks
"Scott Phelps" <do********@hotmail.com> wrote in message
news:d3**********@news.xmission.com...
Nevermind readonly works great!

Thanks
"Scott Phelps" <do********@hotmail.com> wrote in message
news:d3**********@news.xmission.com...
How can I make an input box (or other objects) disabled or greyed out and still have them submit in the form?

Thanks



<style type="text/css">

..readonly {
color: #787878;
background: buttonface;
}

</style>

<input class="readonly" readonly="readonly" name="foo" value="">

Why not use a hidden field, if you just want to take the user out of
the loop?

Jul 23 '05 #5
Nope

"John" <jo**@mshome.net> wrote in message
news:Xn***************************@218.100.2.59...
"Scott Phelps" <do********@hotmail.com> wrote in
news:d3**********@news.xmission.com:
How can I make an input box (or other objects) disabled or greyed out
and still have them submit in the form?

Thanks


Not sure, but <input ... disabled> still gets submitted, doesn't it?

Jul 23 '05 #6
Thanks

"RobB" <fe******@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Scott Phelps wrote:
Ok how do I make readonly greyed out?

Thanks
"Scott Phelps" <do********@hotmail.com> wrote in message
news:d3**********@news.xmission.com...
> Nevermind readonly works great!
>
> Thanks
> "Scott Phelps" <do********@hotmail.com> wrote in message
> news:d3**********@news.xmission.com...
>> How can I make an input box (or other objects) disabled or greyed out and >> still have them submit in the form?
>>
>> Thanks
>>
>
>


<style type="text/css">

.readonly {
color: #787878;
background: buttonface;
}

</style>

<input class="readonly" readonly="readonly" name="foo" value="">

Why not use a hidden field, if you just want to take the user out of
the loop?

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
8
by: ORC | last post by:
Hi, Is it possible to disable an event like e.g. disabling: private void textBox1_TextChanged(object....) ? Thanks, Ole
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
4
by: Arvind P Rangan | last post by:
Hi, Has anybody worked on disabling postback event of button event in webforms. As it does not have a property of autopostback how do we make it disable. I tried few article but they have...
5
by: Edwin Knoppert | last post by:
I have a div which holds controls. I'm looking for a way to disable all controls but *without* setting each control enable state. Same to style>display i'm looking for a disable method. Do i...
4
by: John Devlon | last post by:
Hi, Can someone please help me. I've got a strang problem in Visual Studio 2005 I've created a windows application, using an MDI form and top menu. When a menu item is clicked, a new instance...
4
by: SteveKlett | last post by:
I have a subset of form items that I need to perform different operations on (enable/disable, clear values, change style, etc) rather than hard code the IDs or names I would like to recursively...
3
by: Pietro | last post by:
Hi all, First of all I'd like to thank you very very much ,as finally after many years of searching,I could find a code to disable/enable the shift key,but actually i cannot use the code as I'm...
1
by: JT | last post by:
Hi, I want to disable the ability to launch an application that is embedded in the text of a RichTextBox control. I've seen various posts that say that doing the following will disable click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.