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

Display problem in firefox

8
Hi am new to javscript.Am trying to display a row when a radio button is clicked and hide some oother row whena button is clicked.Using style.display.It works fine in IE but creates probem in Firefox..Please help me
Nov 2 '06 #1
5 3330
Hi am new to javscript.Am trying to display a row when a radio button is clicked and hide some oother row whena button is clicked.Using style.display.It works fine in IE but creates probem in Firefox..Please help me
Hi Parz,

Can you post the function here? We can have a better idea.
Nov 2 '06 #2
You should really post some code, but anyway, your problem might be that you use the display property like this:

to show:

style.display = "block";

to hide:

style.display = "none";

but that doesn't work for elements such as TR because the default display of a TR element is not block.

You should use instead:

to show:

style.display = "";

to hide: (it's the same)

style.display = "none";

I advise you to use style.visibility along with style.display.

Hope this helps!

Cheers...
Nov 2 '06 #3
Parz
8
Hey this is the function that i used to change the display
Expand|Select|Wrap|Line Numbers
  1. function overseas()
  2. {
  3.  
  4. document.getElementById('Country').style.display= this.checked?'none':'inline';
  5. document.getElementById('th1').style.display = this.checked?'none':'inline';
  6. document.getElementById('State').style.display = this.checked?'inline':'none';
  7. document.getElementById('City').style.display = this.checked?'inline':'none';
  8. document.getElementById('th2').style.display = this.checked?'inline':'none';
  9. document.getElementById('th3').style.display = this.checked?'inline':'none';
  10. }
Nov 3 '06 #4
Parz
8
Hey thanks..I replaced the block wid blank..that seems to work...
Thanks a lot
Nov 3 '06 #5
Me ajudou mt tb!! Parabéns!
Sep 30 '08 #6

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

Similar topics

7
by: Marc | last post by:
Hi everyone. I am having trouble with a stylesheet in mozilla. It is part of turning a list into a menu: #menu li{ margin: 0; display: inline; vertical-align: bottom;
3
by: shreddie | last post by:
Could anyone assist with the following problem? I'm using JavaScript to hide/show table rows depending on the option selected in radio buttons. The script works fine in IE but in Firefox the...
3
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it...
4
by: drew197 | last post by:
I am a newbie. I am editing someone elses code to make it compatible with Firefox and Safari. In IE, when you click on the proper link, a block of text is shown in a nice paragraph form. But, in...
2
by: 4MLA1FN | last post by:
i'm building a little web app for my research project. url is here: http://www.cognitivecomposites.com/wtf/ it validates as xhtml/strict according to: ...
1
by: RonY | last post by:
I have a dropdown which calls SetTimePeriod method on change the selection. In the JS function, I reset the field style.display based on what the selection is. This works fine with IE but not working...
1
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I...
2
by: Jessica M | last post by:
I am having the following problem http://jessica.ourprofile.net/ are being rendered differently on Firefox and IE6 (PC). I have outline the div culprits in red to help with debugging....
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
5
by: eholz1 | last post by:
Hello Group, I am developing a web site using CSS. I have a div that has a vert scroll bar in it. The div works just fine (scroll up and down, etc). I have regular text (using <ptags) in the...
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:
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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,...
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.