how can i change disabled background on all form elements ? 4 2427
Mel said the following on 2/28/2006 10:55 PM: how can i change disabled background on all form elements ?
First you have to explain what a "disabled background" is. Assuming that
your form elements are disabled and you don't want the "grey" disabled
view of it, you can loop through the form elements and set them to
enabled, or disabled to false. Search the archives.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
thanks for you for your very informative reply.
1) if i enable them according to your wise recommandation, they are not
disabled are they ?
2) what part of my quesiton you did not understand. what does disabled
form elements mean to you ?
3) if you have nothing to say, then please dont
My original question was and is :
"how can i change disabled background on all form elements ? "
Mel said the following on 3/1/2006 6:51 PM: thanks for you for your very informative reply.
Please quote what you are replying to.
If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers. <URL: http://www.safalra.com/special/googlegroupsreply/ >
1) if i enable them according to your wise recommandation, they are not disabled are they ?
Correct.
2) what part of my quesiton you did not understand. what does disabled form elements mean to you ?
Disabled form elements means they are disabled. I did not question that.
I questioned what you meant by "disabled background". Literally, that
means the background is disabled.
3) if you have nothing to say, then please dont
If you can't concisely ask your question, then please don't bitch about
the answers you get.
My original question was and is : "how can i change disabled background on all form elements ? "
And you still have not explained what you mean.
I *think* what you want is to change the appearance of a disabled form
element? You use CSS for that.
news:comp.infos ystems. www.authoring.stylesheets is the place to ask that
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mel wrote: thanks for you for your very informative reply.
1) if i enable them according to your wise recommandation, they are not disabled are they ? 2) what part of my quesiton you did not understand. what does disabled form elements mean to you ? 3) if you have nothing to say, then please dont
My original question was and is : "how can i change disabled background on all form elements ? "
What does this have to do with JavaScript? Ask in:
news:comp.infos ystems. www.authoring.stylesheets
Before you do, note that the HTML 4 specification defines a disabled
attribute for the following elements: BUTTON, INPUT, OPTGROUP, OPTION,
SELECT, TEXTAREA.
Form elements don't have a disabled attribute, though some browsers may
support it
In some browsers, a disabled element does not have a grey background,
though the text (if any) that is in the element is usually grey instead.
If you intend to changing the colour using CSS, not all browsers support
styles on all elements, e.g. older versions of Safari do not allow
styling of the elements listed above (though I think the latest version
does).
--
Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ittay Dror |
last post by:
Hi,
I have a form with various elements which, according to changes in
values become enabled or disabled.
The disabled elements are normally not submitted, but I wish they
were. How can I go about making elements appear to be disabled, but
still send them when the form is submitted.
Thanx,
|
by: Stijn Goris |
last post by:
hi all,
I try to enable some form elements (positie and fotoToevoegen) when a user
clicks a checkbox. Sadly enough it doesn't work I use the
'onSelect="EnableInput();'. The function is defined inside the form. Maybee
someone knows the problem?
kind regards
Stijn
|
by: Peter Williams |
last post by:
Hi All,
I want to write some javascript for a html page which does the
following.
Imagine that the page contains a table with 2 columns and 3 rows, e.g.:
+---+---+
| A | B |
+---+---+
|
by: Dani |
last post by:
Hello everybody,
I have some code that disables form elements on body load, but I notice
when I hit the "back" button, I need to re-enable the form elements
(that is done by clicking on a radial button). Is there any way I can
keep the form for disabling every time a user hits the back button and
"remember" what elements should be enabled? I was thinking maybe
utilizing some referrer thing, but I'm not that good with JS yet.
Thanks...
|
by: Pudlik, Szymon |
last post by:
Hi,
I've written some code:
function onSubmit(form){
for (var i = 0; i < form.elements.lenght; i++){
if (form.elements.disabled == 1)
form.elements.disabled = 0;
}
| |
by: Jon Hoowes |
last post by:
Hi,
I have inherited some code that has some form elements (radio buttons)
that are called "1", "2" etc.
for example:
<input name="2" type="radio" value="45">
<input name="2" type="radio" value="46">
|
by: omidmottaghi |
last post by:
I need to disable/enable form elements in my form.
the code i was developed works fine in FF, but in IE, its behaviour is
very strange!!
in the form, we have a lot of checkboxes, all of them named like
"xyz_np".
in front of each checkbox, we have some fields, named "xyz"
this is my JS code.
after clicking on checkboxes:
|
by: gubbachchi |
last post by:
Hi all,
I have an issue here.
There is a link "My plan" in the php page1. On clicking this link directs to a form which has some entries that has to be filled by the user.And once the user fills the form and clicks the submit button the entries will be stored in the database.
What I need is, when the user fills the form and submits the form once all the form elements should be disabled. If the user again clicks the "My plan" link, the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |