How can I invisiblize groups of controls via jQuery?

前端 未结 3 843
情书的邮戳
情书的邮戳 2021-01-25 15:41

In my Sharepoint project/Web Part/Web Page, I dynamically create page elements/controls using C# in the *.ascx.cs file.

In the *.ascx file, I use jQuery for responding t

3条回答
  •  [愿得一人]
    2021-01-25 16:03

    You can hide an element like so:

    $('...').hide();
    

    Or you can slide it up with:

    $('...').slideUp();
    

    to get a nice sliding up animation.

    On a side note, you can do this to multiple elements at once, in your case:

    $('[id$=txtbxthis], [id$=txtbxthat], [id$=txtbxtheother]').slideUp();
    

提交回复
热议问题