Web dev and programming discussions forums
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
Forum archives

Re : Show/Hide the Div


First of all, use toggleClass() as suggested above. Now let's look at the reason why your initial code didn't work. Simply add the following one line at the beginning of your code and that will fix your issue:
  1. showtheoptions = true;
Your original script failed at the following line, because showtheoptions was undefined:

  1. showtheoptions = !showtheoptions
View original thread with replies
Tags: showtheoptions, code

show and hide div

I have 3 buttons: About, Products & Services.
I have one main div that will contain other divs. The main div will contain a div for about, products and services. At first they are all hidden. When i click About it shows the div.

Now how can I do this: When i click products it hides the about div and shows the products div. ETC...

Right now i can show divs, but it does hide the last one which i need to do. See code below:

INDEX.HTML
-----------
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
               
                <LINK REL="shortcut icon" HREF="http://www.ccsystems.co.zm/favicon.ico" />
                <LINK REL="icon" HREF="http://www.ccsystems.co.zm/favicon.ico" />
               
                <META NAME="keywords" CONTENT"Sharp, Motorola, Kenwood, HYT, Inmarsat, Thuraya, Iridium, Solar Power, Green Energy, Masts, Steel Structure Design, Installation, Copy Machines, Printers, 2-way radio communication, HF/SSB, Satellite Phone, IP Modem, Satellite Internet, VSAT, Internet, Portable radios, Scanners, Digital Multifunctional, Photocopy, Mobile, Repeaters, Communication, Electronic Systems, Sales & Service, Networking, Electronics, Repair, GPS, Technology, Spares, Mines, Supply and Service, Lusaka, Zambia, Africa, CC Systems Ltd.">
                <META NAME="description" CONTENT="Copier, Communication & electronic systems, Sales & Service, Lusaka - Zambia. supply and service of SHARP copier, MOTOROLA and KENWOOD 2-way radio communication equipment, THURAYA, INMARSAT and IRIDIUM satellite phone and data communication, Solar Power equipment, Antenna Masts. Installation within Lusaka and country wide in Zambia">
                <META NAME="author" CONTENT="CC Systems Ltd. - Metzger">
                <title>CC Systems Ltd.</title>
               
                <link rel="stylesheet" type="text/css" href="stylesheet.css" />
               
                <script language="JavaScript">
                        function setVisibility(id, visibility)
                        {
                                document.getElementById(id).style.display = visibility;
                        }
                </script>
        </head>

        <body>
                <div id="container">
                        <div style="position:absolute; top:-51px; width:200px;">
                                <img src="http://www.designerstalk.com/forums/images/logo.png" alt="CC Systems Ltd. Logo" title="Copier, Communication & electronic systems, Sales & Service | Lusaka, Zambia">
                        </div>
                        <div style="position:absolute; top:-51px; float:right; width:400px;">
                                <p class="contains">About | Products | Services<span color="#ffffff" class="text"><a class="nav" href="javascript:setVisibility('about', 'inline')" onclick="this.className='over'">About</a> | <a class="nav" href="javascript:setVisibility('products', 'inline')" onclick="this.className='over'">Products</a> | <a class="nav" href="../CC Systems Website/about.html">Services</a></span></p>
                        </div>
                        <div id="about" style="display:none;">
                                <div style="position:absolute; left:10px; top:150px; width:400px;">
                                        <p style="text-align:justify; color:white; font-family:Verdana;">        Supply and service of
                                                SHARP copier,
                                                MOTOROLA and KENWOOD
                                                2-way radio communication equipment,
                                                THURAYA, INMARSAT and IRIDIUM
                                                satellite phone and data communication,
                                                Solar Power equipment, Antenna Masts.
                                                Installation within Lusaka and country wide in Zambia</p>
                                </div>
                                <div style="position:absolute; float:right; right:-900px; top:25px">
                                        <img src="http://www.designerstalk.com/forums/images/Zambia.jpg" alt="Map of Zambia" width="450">
                                </div>
                        </div>
                       
                        <div id="products">
                                <p>TESTING</p>
                        </div>
                       
                        <div style="position:absolute; top:442px; left:28px; width:900px;">
                                <p class="footer">HOME | SHARP | MOTOROLA | HYT | KENWOOD | INMARSAT | THURAYA | IRIDIUM | SOLAR POWER | MASTS | INSTALLATION | ABOUT US | CONTACT</P>
                        </div>
                        <div style="position:absolute; top:490px; width:900px; text-align:center;">
                                <p style="font-family:Verdana; font-size:0.6em; font-weight: bold; color:#c8c7c7;">Copyright © 2008 - CC Systems Ltd. All Rights Reserved. <a class="foot" href="disclaimer.html" title="Disclaimer">Disclaimer</a>.</P>
                        </div>
                        <div style="background-color:#515151; position:absolute; top:1.5px; left:1.5px; width:900px; height:450px; z-index:-1; border: 1px solid #838383;"></div>
                        <div style="background-color:#c3c3c3; position:absolute; top:3px; left:3px; width:900px; height:450px; z-index:-2; border: 1px solid #e7e7e7;"></div>
                </div>
        </body>
</html>


STYLESHEET.CSS
-----------------
Code:

body
{
        background-color:#eeeeee;
        margin:0;
        padding:0;
}

/*Navigation menu*/
a.nav {text-decoration: none;} /* Remove underline */
a.nav:link {color:#498946}    /* unvisited link */
a.nav:visited {color:#498946}  /* visited link */
a.nav:hover {color:#2e2211}    /* mouse over link */

/*footer menu*/
a.foot {text-decoration: none;}
a.foot:link {color:#c8c7c7}
a.foot:visited {color:#c8c7c7}
a.foot:hover {color:#2e2211}

/*Main Brown Box*/
#container
{
        position:relative;
        background-color:#2e2211;
        top:100px;
        margin-left: auto ;
        margin-right: auto ;
        width:900px;
        height:450px;
}

#about
{
        position:relative;
        background-color:#2e2211;
        top:0px;
        margin-left: auto ;
        margin-right: auto ;
        width:900px;
        height:450px;
}

#products
{
        position:relative;
        background-color:#2e2211;
        top:0px;
        margin-left: auto ;
        margin-right: auto ;
        width:900px;
        height:450px;
}

.over { color:#2e2211; text-decoration: none;}

/*Footer format*/
.footer
{
        font-family: Verdana;
        font-size: 0.6em;
        font-weight: bold;
        color: #c8c7c7;
}

.contains
{
        position: relative;
        left: 662px;
        top: 2px;
        color: #cccccc;
        font-weight: bold;
        font-family: Verdana;
}

.text
{
        position: absolute;
        left: -2.5px;
        top: -2.5px;
        color: #498946;
        font-family: Verdana;
}

Thanks

hide/show div

Hello, I'm trying to have a div be hidden on loading the page but when you click a link it will show the div... here's code I have but it doesn't show when you click the link...

<script type="text/javascript">
function show(){
document.getElementById(test).style.display="block";
}

</script>

<div id="test" style="display:none;">
<p>Some text</p>
</div>


<a href="#" onclick="show(); return false;">Show</a>

Show/Hide Issue

Hi Chaps, I have a page that contains PHP and Javascript.
I have a table of results, with two grouping stages:

- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1

The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.

Here is the code:
//JAVASCRIPT

Code: Select all
function toggle2(id, obj) {
   var matchingElements = new Array();
   
   if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
   } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
         if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
         }
      }
   }
   
    for (i = 0; i < matchingElements.length; i++) {
      toggleDispla
...

Statistics : Posted by koolsamule • on Thu Nov 26, 2009 6:49 pm • Replies 0 • Views 92



Hide-Show div switch ?

Hi,
I am js newbie and I have found a script that does what I am wanting it to do with the exception of one thing. I would like to have each div close the current div and take it's place as it is opened, just like turning pages.

I have a series of divs (#one,#two,#three) that are collapsed when the page loads with the exception of one div (#home) which will be current div.
Code:

function pageLoad() {
collapseAll($('one','two','three'));
}

I have set up a nav menu for the onclick anchors that will open the hidden divs. As each link in the main menu is clicked it should switch places with the current div in view. When "Div One" is clicked from the menu it should close the current div "Home" and take it's place and so on down the line.

Here is my live test page

My plan is to have it degrade to standard jump links if js is turned off, it seems to do that just fine.

I did not write the js, it was a copy and paste from this tutorial.
http://www.dustindiaz.com/dhtml-expa...apse-div-menu/

If any of you JS gurus could help me get the divs to switch out with one another I would really appreciate it. I'm open to any ideas also if you see a better way of doing it. I just wanted a small stand alone script to take care of the div hiding and switching.

CSS is my area of experience so pardon me if I don't understand all the js terminology.
Thanks in advance :)

Show/Hide div problem

Hi there

Ive been trying to get this script to work for a while now, its an old script i had lying around got it from the net (where else lol) but im trying to get it to hide the current div when the link is clicked, the if statement should be picking up whether (id) is displaying as block, and set its style to none if required, but no errors etc, just doesnt work.

Thanks

Code:

<script language="JavaScript">
//here you place the ids of every element you want.
var ids=new Array('cat_id1','cat_id2','cat_id3','cat_id4','cat_id5','cat_id6','cat_id7','cat_id8','cat_id9','cat_id10');

function switchid(id){       
        hideallids();
        showdiv(id);
}

function hideallids(){
        //loop through the array and hide each element by id
        for (var i=0;i<ids.length;i++){
                hidediv(ids[i]);
        }                 
}

function hidediv(id) {
        //safe function to hide an element with a specified id
        if (document.getElementById) { // DOM3 = IE5, NS6
                document.getElementById(id).style.display = 'none';
        }
        else {
                if (document.layers) { // Netscape 4
                        document.id.display = 'none';
                }
                else { // IE 4
                        document.all.id.style.display = 'none';
                }
        }
}

function showdiv(id) {
        //safe function to show an element with a specified id
                 
        if (document.getElementById) { // DOM3 = IE5, NS6
                if (document.getElementById(id).style.display == 'block')
                        {
                        document.getElementById(id).style.display = 'none';
                        }
                else
                        {
                        document.getElementById(id).style.display = 'block';
                        }

        }
        else {
                if (document.layers) { // Netscape 4
                        document.id.display = 'block';
                }
                else { // IE 4
                        document.all.id.style.display = 'block';
                }
        }
}
</script>


Show/Hide Issue

Hi Chaps, I have a page that contains PHP and Javascript.
I have a table of results, with two grouping stages:

- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1

The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.

Here is the code:
//JAVASCRIPT

Code: Select all
function toggle2(id, obj) {
   var matchingElements = new Array();
   
   if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
   } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
         if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
         }
      }
   }
   
    for (i = 0; i < matchingElements.length; i++) {
      toggleDispla
...

Statistics : Posted by koolsamule • on Thu Nov 26, 2009 6:49 pm • Replies 0 • Views 115



Show/Hide Issue

Hi Chaps, I have a page that contains PHP and Javascript.
I have a table of results, with two grouping stages:

- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1

The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.

Here is the code:
//JAVASCRIPT

Code: Select all
function toggle2(id, obj) {
   var matchingElements = new Array();
   
   if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
   } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
         if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
         }
      }
   }
   
    for (i = 0; i < matchingElements.length; i++) {
      toggleDispla
...

Statistics : Posted by koolsamule • on Thu Nov 26, 2009 6:49 pm • Replies 0 • Views 32



Show/Hide Issue

Hi Chaps, I have a page that contains PHP and Javascript.
I have a table of results, with two grouping stages:

- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1

The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.

Here is the code:
//JAVASCRIPT

Code: Select all
function toggle2(id, obj) {
   var matchingElements = new Array();
   
   if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
   } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
         if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
         }
      }
   }
   
    for (i = 0; i < matchingElements.length; i++) {
      toggleDispla
...

Statistics : Posted by koolsamule • on Thu Nov 26, 2009 6:49 pm • Replies 0 • Views 36



Show/Hide Issue

Hi Chaps, I have a page that contains PHP and Javascript.
I have a table of results, with two grouping stages:

- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1

The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.

Here is the code:
//JAVASCRIPT

Code: Select all
function toggle2(id, obj) {
   var matchingElements = new Array();
   
   if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
   } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
         if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
         }
      }
   }
   
    for (i = 0; i < matchingElements.length; i++) {
      toggleDispla
...

Statistics : Posted by koolsamule • on Thu Nov 26, 2009 6:49 pm • Replies 0 • Views 79



hide() and show() on z-index

Hi people,

I'm having a problem on: http://skydive.uproductions.nl/

I've got a menu on z-index:0; and a footer on z-index:1; if you're doing a mouse over, the menu pops up under the footer. But the menu is longer than the footer (it's a png image) so you see the menu stock under it what isn't exactly the meaning.

if there was a overflow-bottom:hidden; it's was solved but now i don't know what to do!

someone having a good idea?

Thanks in advance

daan

Re : hide() and show() on z-index

That does the trick:

  1. div#mainContent div#menu ul {
  2. height:16px;
  3. overflow:hidden;
  4. padding-top:200px;
  5. position:relative;
  6. top:-196px;
  7. }

Of course, it is a bit hacky, but your HTML/CSS has also other flaws that might need some work. What's wrong with that fix is that if you have any links in your content, the invisible menu div will be over the links if they happen to be on the bottom half of the content.

To get around the problem, add those in bold:

  1. div#mainContent div#right {
  2. float:left;
  3. height:300px;
  4. overflow:auto;
  5. position:relative;
  6. width:400px;
  7. z-index:1;
  8. }
  9. div#mainContent div#menu {
  10. float:left;
  11. height:20px;
  12. left:0;
  13. margin:0 0 0 3px;
  14. position:relative;
  15. text-align:center;
  16. top:0;
  17. width:100%;
  18. z-index:0;
  19. }
  20. div#mainContent div#menu:hover {
  21. z-index:2
  22. }

-- Aivo --

Show/Hide code help

Hi i need some help with editing show/hide code it is works fine with me but it is show the content every time i refresh the page what i want is to be the conetent hidden till i click on the link to show the content so every time i refersh the page no thing appear untill i click on the show link.

<head>tag
<script type="text/javascript">
<!--
var storedDiv = null;
function getDiv(oID) {
if(document.getElementById) {
return document.getElementById(oID);
} else if( document.all ) {
return document.all[oID];
} else { return null; }
}
window.onload = function () {
for( var i = 0, y; y = getDiv('ans'+i); i++ ) {
y.style.display = 'none'
}
};
function toggleInfo(oID) {
var oDiv = getDiv(oID); if( !oDiv ) { return; }
oDiv.style.display = (oDiv.style.display=='none') ? 'block' : 'none'
if( storedDiv && storedDiv != oDiv ) { storedDiv.style.display = 'none'
} storedDiv = oDiv;
}
//--></script>


in <body>tag
<span style="cursor: hand; cursor: pointer" onclick="toggleInfo('ans0');">
>> Hide/show content
</span><br><br>
<div id="ans0">

content

</div>

Show/Hide Issue

Hi Chaps, I have a page that contains PHP and Javascript.
I have a table of results, with two grouping stages:

- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1

The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.

Here is the code:
//JAVASCRIPT

Code: Select all
function toggle2(id, obj) {
   var matchingElements = new Array();
   
   if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
   } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
         if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
         }
      }
   }
   
    for (i = 0; i < matchingElements.length; i++) {
      toggleDispla
...

Statistics : Posted by koolsamule • on Thu Nov 26, 2009 6:49 pm • Replies 0 • Views 106



Show/hide Issue

Hi Chaps, I have a page that contains PHP and Javascript.
I have a table of results, with two grouping stages:

- Month, Year1
- ProjectID1
- Job ID1
- Job ID2
- ProjectID2
- Job ID1
- Month, Year2
- ProjectID3
- Job ID1
- ProjectID4
- Job ID1

The problem is that when the ProjectID row is opened to display the JobID row, then close the Month, Year row, the JobID row remains visible.

Here is the code:
//JAVASCRIPT
Code:

function toggle2(id, obj) {
  var matchingElements = new Array();
 
  if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
  } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
        if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
        }
      }
  }
 
    for (i = 0; i < matchingElements.length; i++) {
      toggleDisplay(matchingElements[i], obj);
  }
}

function toggleDisplay(element, obj) {
  if (element.style.display == "none") {
      element.style.display = "block";
      obj.innerHTML = "<img src=\"../../Images/minus.gif\" border=\"0\">";
  } else {
      element.style.display = "none";
      obj.innerHTML = "<img src=\"../../Images/plus.gif\" border=\"0\">";
  }
}
function toggle3(id, obj) {
  var matchingElements = new Array();
 
  if (document.getElementsByClassName) {
      matchingElements = document.getElementsByClassName(id);
  } else {
      var elements = document.getElementsByTagName("tr");
      for (i = 0; i < elements.length; i++) {
        if (elements[i].className == id) {
            matchingElements[matchingElements.length] = elements[i];
        }
      }
  }
 
    for (i = 0; i < matchingElements.length; i++) {
      toggleDisplay(matchingElements[i], obj);
  }
}

function toggleDisplay(element, obj) {
  if (element.style.display == "none") {
      element.style.display = "block";
      obj.innerHTML = "<img src=\"../../Images/minus.gif\" border=\"0\">";
  } else {
      element.style.display = "none";
      obj.innerHTML = "<img src=\"../../Images/plus.gif\" border=\"0\">";
  }
}

//PHP
Code:

<?php
      $previousMonth = '';
          if ($totalRows_rsInvPending > 0) {
      // Show if recordset not empty
      do {
      if ($previousMonth != $row_rsInvPending['themonth']) {
      // for every Month, show the Month Name
          ?>
      <tr>
    <td colspan="18" class="highlight"><span class="blueBold"><a href="#" onclick="toggle2('month1<?php echo $row_rsInvPending['themonth'] ?>', this)"><img src="../../Images/plus.gif" border="0" /></a> <?php echo $row_rsInvPending['theyear'] ?> - </a></span><span class="blueNOTBold"><em><?php echo $row_rsInvPending['themonth'] ?></em></span></td>
    </tr>
      <?php $previousMonth = $row_rsInvPending['themonth']; } ?>
      <tr class="month1<?php echo $row_rsInvPending['themonth'] ?>" style="display:none">
    <td colspan="20" class="highlight1"><span class="blueBold"><a href="#" onclick="toggle3('proj1<?php echo $row_rsInvPending['projid'] ?>', this)"><img src="../../Images/plus.gif" border="0" /></a> <?php echo $row_rsInvPending['projid'] ?> - </a></span><span class="blueNOTBold"><em><?php echo $row_rsInvPending['projtitle'] ?></em></span></td>
    </tr>
    <tr class="proj1<?php echo $row_rsInvPending['projid'] ?>" style="display:none">
        <td><?php echo $row_rsInvPending['jobname']; ?></td>
        <td><?php echo $row_rsInvPending['projtype']; ?></td>


Show/hide element

Hey there,
I want a div element only to show when you hover over an anchor of the main menu.
The problem is: This div is not a child of the menu, so i can't do it through simple hover and display css functions.


That's the menu.


This is what should appear when you're hovering one of the items.
Also, I want a different div for the different menu anchors, because I dont think wordpress can read the category by a hover. And, if this wasn't enough, I have no idea how to build this so you can actually from the menu anchor to the subnav without it disappearing when you're not above the anchor.

Here's the website:www.chabuya.net

I already tried hundreds of show/hide scripts, solving this via css but nothing works for me.
I'd be grateful for any suggestions.

Thanks in advance,
Kevin

show/hide
Jan 12, 2010
Hello, I'm new to javascript and jquery library, I have script running which functions fine only problem I have with it is that I want to close other divs when another is selected, I guess like an accordion style but using the toggle, slide fade-in...

show/hide ui.tab?
Nov 9, 2009
I have a series of tabs using UI. I need to hide some tabs depending on the selection in the first tab. Doing $("#tab3").hide(); doesn't work. This is what I have thus far: $("#div.jobtype input[name='jobtype']").click( function () {...

simple show / hide
Jan 15, 2010
Hi, I'm currently trying to implement a simple show/hide effect using prototype. I had a nice effect using mootools but the site is using magento so mootools is a no-go as magento requires protoype. All I want is a click on an image to show a...

Hide/show polygon
Feb 13, 2010
I've drawed 2 polygons on my map; - poly - poly1 With the button 'Toggle Visibility' I want to hide/show the polygon 'poly'. I've seen the examples, but they're all for API V2. I need something for V3. I've tried some things with hide() but I'm...

.hide and .show div's
Nov 11, 2009
Hello, Could you help me please. I have a list of hotel which I .hide and .show div's to show more or less info. so i have <div class="Hide-BAT1 ... > to <div class="Hide-Bat55 Â… > when the user press a button I use the code var Hcode =...

is there a better way, and extra click to show/hide in ie8
Jan 14, 2010
I'm very new to jquey and javascript and need some help with a function. The function shows is a div if any of a list of check boxes are clicked and only hides this div if all the check boxes are unchecked The below code works in Firefox and...

Show/hide div based on URL parameter
Feb 13, 2010
Hi guys, Am a beginner with Jquery and what i want is as follows. I have a div that should be hidden on default, but when a certain URL parameter is present, then the div is visible. I am basing the following on this demo :...

show/hide toggle for polygons
Feb 21, 2010
Hello, I want to make a toggle for polygons with checkboxes, but I can't see how to make a simple hide/show button: I have for example: http://pastebin.com/m70981c1a http://boxes.x10hosting.com/poly-2.9.html why can't this work (m7418 is the...

Show Hide 'td' on click of a link
Feb 12, 2010
I have a table that contains information that is hidden within a 'td' element. Users can access this information if they wish by clicking on a link that is held in another 'td' element on the previous row (table structure below): <table>...

show/hide div on select change
Nov 18, 2009
I am trying to have a div show and hide based on the value of a select list. I have looked at a number of examples, but can't seem to get it to work. Would appreciate someone taking a look at what I have and giving me any advice. <script>...