[英]I am using Bootstrap portfolio section, want to remove 'ALL' first tab and make the category selected
I am using this template 我正在使用此模板
You can scroll down to WORK section which is the portfolio section filterable. 您可以向下滚动到WORK部分,该部分是可过滤的Portfolio部分。
The already selected option is "ALL" and that shows all the items. 已经选择的选项是“ ALL”,它显示所有项目。 I want to get rid of it and make one of the other tabs active.
我想摆脱它并使其他选项卡之一处于活动状态。
I tried removing the tab and add class 'selected' to one of the other tabs which make it look active but it's still showing 'ALL' items and not just the active tab unless I click on any other tab and select it back. 我尝试删除该选项卡,并将“已选择”类添加到其他选项卡之一,使其看起来处于活动状态,但除非我单击任何其他选项卡并再次将其选中,否则它仍显示“所有”项,而不仅仅是活动选项卡。
I'm not too good with java script so an easy instructions will be really appreciated. 我不太喜欢Java脚本,因此非常感谢您提供简单的说明。 Thank you so much.
非常感谢。
Just trigger the click event
too while you make any tabs active like one below: 在使任何选项卡处于活动状态时也只需触发
click event
,如下所示:
$('[data-option-value=".web"]').trigger('click');
Run the above code in console
of the link given by you and you can see the changes. 在您提供的链接的
console
中运行上面的代码,您可以看到更改。 You can choose any of the tab to be active. 您可以选择任何一个选项卡来激活。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.