how to hide html controls using jQuery

Total Post:12

Points:84
JQuery 
 136  View(s)
Ratings:
Rate this:

how to hide html controls using jQuery

  1. Post:140

    Points:984
    Re: how to hide html controls using jQuery

    Hide elements for Jquery:

    Hide function using by two types : 

    1.hide() - Using the speed parameter 

    2.hide() - Using the callback parameter

    Syntax --// Hide all <X> elements : 

    $("button").click(function(){
    
        $("X").hide();
    });

    you can use ready and click function with using CSS:

    Example :

    $(document).ready(function () {
    
               $("#btn_Add").click(function () {
                   $("#TextBox2").css({ "background-color": "your choice", "font-size": "100%" });
                   $("#TextBox1").css('visibility', 'hidden');
               });
           });

    I hope, It will useful for you .

    Happy Coding :)


Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!