Get all items that start with class name

后端 未结 5 1366
[愿得一人]
[愿得一人] 2020-12-17 00:30

I\'m trying to only show certain divs. The way I have decided to do this is to first hide all elements that start with \"page\" and then only show the correct <

5条回答
  •  误落风尘
    2020-12-17 00:49

     $(document).ready(function () {
            $("[class^=page]").show();
            $("[class^=page]").hide();
        });
    

    Use this to show hide div's with specific css class it will show/hide all div's with css class mention.

提交回复
热议问题