473,618 Members | 3,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text label is not disabling in Firefox

46 New Member
Hi!
i have a problem in firefox.I have a textbox with a laeb for it and a checkbox.i need to disable the textbox as well as label when checkbox is checked.it is working in IE but not in FF.plz check my code and tell me a solution

Expand|Select|Wrap|Line Numbers
  1. <td id='abc' name="xyz">
  2. Text
  3. </td>
  4. <Input type="text" readonly name="abc1" style="width:165px;"  size = "20"  >
in javascript my code is

Expand|Select|Wrap|Line Numbers
  1. if(document.frm.self.checked==true)
  2. {
  3. document.ex.abc.disabled=true; (ex is the HTML form name)
  4. }
  5. else
  6. {
  7. document.ex.abc.disabled=true;
  8. }
Aug 13 '07 #1
2 1949
acoder
16,027 Recognized Expert Moderator MVP
Is the text input box not "abc1"?
Aug 13 '07 #2
pbmods
5,821 Recognized Expert Expert
Heya, Honey99.

Thanks for using CODE tags! Did you know that you can specify a language for your CODE tags to make your source code easier to read (and therefore make our Experts more likely to post solutions)?

You will still need to use [/code] to close your code blocks, regardless of the language, but you can the use one of these tags to open your code block:

[code=html]
[code=javascript]
[code=php]

and so on.

Thanks!

MODERATOR
Aug 13 '07 #3

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

Similar topics

2
2130
by: FrodoBaggins | last post by:
Dear Team, I am trying to use stylesheets on a web form. Initially, I created a folder named 'styles' within the WebUI project. In this I created the following stylesheet named 'drivingschool.css': body {
2
10506
by: Hareth | last post by:
i got the idea "form.textbox.text = label.text" from vb... i tried it in C# but it generated errors i found a diff example from : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscon/html/vcwlkcodegettingvaluefromanotherformvisualc.asp but its too confusing for me, and i think its too much work for such an easy code...
1
1403
by: Menü Sargut | last post by:
Hey there, How can I set the BorderColor from a text Label (FixedSingle) Thanks for any help.
2
3236
by: wolfgang.schwarz | last post by:
hi, is there a way of getting the position and size of a text node in Firefox without altering the DOM? For example, suppose I have a document fragment like this: <div> textnode1 <img> textnode2 textnode3
5
59584
by: Yohan Blurp | last post by:
Hi, Here is sample page to show you the problem : <html><body> <form action="/cgi-bin/test.cgi" method="post"> Data Path : <input type="text" size="50" value="C:\Test Data\May 2007.xls" style='border: thin solid #FFFFFF'></form> </body></html>
3
6275
by: bhanubalaji | last post by:
hi, I am unable to disable the text(label) in javascript..it's working fine with IE,but i am using MOZILLA.. can any one help regarding this.. What's the wrong with my code? I am sending my code here.. Thanks in Advance... Regards
2
2363
damonreid
by: damonreid | last post by:
Is it possible to pass a field to a text label when a form loads? I have tried Private Sub Form_Load() Dim textName As String textName = "Text Edit Text" Me.Text29 = textName
1
1687
by: kenneth6 | last post by:
Windows form app: 1. how to get text label updated? 2. how to get text label assigned with a variable value (integer / string)?
4
2752
by: Shenker | last post by:
Hi, I'd need some way to prevent users from selecting text in a web page. I'm only interested in Mozilla Firefox family browsers. I came with this javascript snippet so far: onmousedown = "return false;" This works, but it has the problem of disabling inputs too, so the user won't be able to enter them with his pointer.
0
8212
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, 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...
0
8653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8304
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,...
0
7126
agi2029
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...
1
6101
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 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...
0
4065
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...
0
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2587
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1459
bsmnconsultancy
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...

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.