473,407 Members | 2,359 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,407 software developers and data experts.

Disabled input in IE

KeredDrahcir
426 256MB
I'm trying to create a form where I want two text input fields one on top of the other but to top input field wont work. When I hover over it, all I get it the mouse arrow rather than the text one.
This works fine in Firefox but not in IE. Is there any way to sort it out.
Expand|Select|Wrap|Line Numbers
  1. <div style="position: relative;">
  2.   <form name="subscription" method="post" location="">
  3.     <input id="updates" tyep="text" style="position: absolute; left: 760px; width: 160px; margin-top: -37px; color: #808080; z-index: 1;" disabled="disabled" value="Subscribe for Updates"/>
  4.     <input id="subscribe" name="email" type="email" style="position: absolute; left: 760px; width: 160px; margin-top: -37px; background-color: transparent; z-index: 99999;" onclick="document.getElementById('updates').value = '';"/>
  5.     <input name="submit" type="submit" value="Submit" style="position: absolute; left: 935px; margin-top: -39px;"/>
  6.   </form>
  7. </div>
I've tried commenting out the lower text field but this doesn't make any difference. I used to have this problem in IE but I haven't seen it for a long time.
Sep 13 '11 #1
3 3310
<input type="email" is not supported by IE browsers. It should be type="text"
Sep 21 '11 #2
KeredDrahcir
426 256MB
I know that but if the browsers doesn't recongise the input type it defaults to text and setting as email helps iPhone users since it gives them the E-mail keyaod,
Sep 21 '11 #3
KeredDrahcir
426 256MB
The solutions is that IE doesn't like the box to have trasnparent text. I removed the back box, gave its style and value to the front box and used JavaScript to change the value when a user selected it.
Oct 6 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Ice Man | last post by:
hello all, i was wondering if i could enable/disable input according to the user, e.g. enable input2 if input1 is enable, else it's disabled. Also, if input1 is deleted then input2 is disabled....
5
by: bart plessers | last post by:
Hello, Somewhere in my code I have <input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')" DISABLED> I changed the layout of the INPUT with a stylesheet to INPUT { color:...
1
by: Chris Ullman | last post by:
Simply put - if I have a disabled textbox how could I change the font-color from gray? e.g. <input type="text" disabled></input> Color no longer seems to work. Can it be done and if so how? ...
3
by: Ben | last post by:
Here's my form: <form name="aForm" method='post'> <input type=file name=file1 onkeypress='KeyPress()'><br> <a id='attachMoreLink' href='javascript:AddFileInput()">Attach More Files </a> <input...
3
by: Kelly Domalik | last post by:
I would like to override the "disabled" property of a hidden field. When disabled is set to "true", it would call a function to disable 2 other text fields on the form. When disabled is set to...
1
by: Martin | last post by:
Is disabled to be set in the style of a tag just like visible? I am trying to set the whole content of a td tag to disabled like this, style='disabled:true' and it does not seem to work. Is this...
3
by: Tariq Ahmad | last post by:
hi, i have a textbox into which i insert a value using javascript and then disable (again using javascript). when i post the page back to itself and look at the .Text property of the textbox...
3
by: r_o | last post by:
hi everyone, i have a long list of checkboxes and textfields and when a checkbox is cleared i want the textfield to become disabled and when its checked enabled, that's easy i know. but the...
1
by: mikaint | last post by:
I've read that if a field is set to disabled, it will be excluded from the submited fields when sending a form. Is there an alternative way to disable a field but still, send it with the form? I...
16
by: shapper | last post by:
Hello, I would like to change the look of disabled inputs of type text on my web site. Should I add a disabled css class to all these inputs or is it possible to select them in my CSS Code...
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: 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
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
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...

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.