Jquery wild card character

前端 未结 4 486
傲寒
傲寒 2020-12-20 23:39

I have 3 controls with id control_1, control_2, control_3.

I want to hide these controls.

Currently I am using this:

4条回答
  •  囚心锁ツ
    2020-12-21 00:16

    You could use:

    $('#control_1,#control_2,#control3').hide();

    or use attributeStartsWith

提交回复
热议问题