.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> ASP.NET >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Show Hide using Javascript. Calling More than one Javascript function at a time.

Posted By:shiv chandra       Posted Date: June 05, 2011    Points: 200    Category: ASP.NET    URL: http://www.dotnetspark.com  

Sample application show demo of javascript for beginner.
 

This demo will explain you how to use javascript to show hide row from table.
You can call more than one javascript function at a time.

Sample application will surely help you to learn this.
Following is the javascript function use to show hide control.
//If Flag is true, show the specified control else hide it
//controlToShowOrHide is the id of control you want to show hide
function ShowHide(Flag, controlToShowOrHide)
    {
        var row= document.getElementById(controlToShowOrHide);
        
        if(Flag== true)
        {
            row.style.display='';
        }
        else
        {
            row.style.display='none';
        }
    }
Calling Above function
Calling more than one function at a time.
See above example, in OnClick event ShowHide function is called twice. same way you can use different function.
 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend