Results 1 to 2 of 2

Thread: Show/Hide div

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Show/Hide div

    I need a script that will use a actual button to activate the function to show/hide all the divs expect one that will be selected by users via radio button. Below is a very basic layout. I want it so when the MX-880 is selected and you click to hide the options you would only see the MX-880 but if you clicked to show the options and then you select the MX-3000 and then clicked to hide the options you would only see the MX-3000. I only want it to hide the options when the user selects the button to show/hide them.
    Code:
    <form id="config" method="post">
    <fieldset><legend>Control</legend>
        <input type="button" value="Show/Hide options" />
        <label><input name="remote" type="radio" value="0" checked>MX-880</label>
        <label><input name="remote" type="radio" value="100">MX-980</label>
        <label><input name="remote" type="radio" value="500">MX-3000</label>
      </fieldset>
    </form>
    Last edited by bobneedshelp; 12-06-2008 at 02:28 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Look into jQuery and the toggle() method.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •