954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

can any body help me in show and hide slider

Hi there,

I need to show and hide functionality through javascript , how can I achieve this.

If I click on a dash link then show particular section and if I click again then it should be hide.

Is there is any script I can use?

Please reply.

coolmind259
Light Poster
34 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

Get jQuery ( http://www.jquery.com ) and read through the documentation

ShawnCplus
Code Monkey
Team Colleague
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
 

YOU CAN USE THE BELOW SCRIPT TO ACHIEVE YOUR REQUIREMENT:

function showHide(elemId)
        {
            if(document.getElementById(elemId).style.display == "none")
                document.getElementById(elemId).style.display = "block"
            else
                document.getElementById(elemId).style.display = "none"
        }


CALL THIS METHOD FROM YOUR LINK & SEND YOUR DIV WHICH YOU WANT TO SHOW/HIDE. FOR EAXAMPLE:

<a href="#" onclick="showHide('divcheckpoint');" >
mail2saion
Posting Whiz in Training
247 posts since Apr 2009
Reputation Points: 26
Solved Threads: 44
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You