我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Bootstrap选项卡面板处于活动状态

I have wasted ridiculous amount of time behind tab-content but can't figure a way out. This is my view code here.

But when I click on tab and try to switch tab panel, all of tab pane goes to display:none as I have added $('.tab-content div').hide(). But when I tried to show the panel, it didn't work.

You forgot the # in the links

<a href="#<?php echo urlencode($course->courseCode);?>" 

and to urlencode the id on the tab

  <div role="tabpanel" class="tab-pane" id="<?php echo urlencode($item->courseCode);?>">

近期文章

  • 从PHP页面提交表单时不调用Ajax
  • 日历预订
  • 如何在PHP中缩短URL?
  • 尝试使用PHP与Bluehost创建联系表单[重复]
  • 使用基于主题的imap_search显示消息
  • 如何修复500错误?
  • socket.io和redis,节点js不能在宅基流浪盒上的laravel中工作
  • move_uploaded_file不适用于会话中保存的文件而不显示任何错误消息
  • PHPExcel克隆工作表 - 有效使用内存
  • 自定义窗口小部件窗体:无法更改任何输入字段的值
  • Laravel身份验证无法在嵌套控制器上识别
  • 适用于PHP的嵌入式脚本引擎
  • mysql查询问题,在返回多行时查找单行
  • 在类函数中没有运行mysqli_query,但它在类外部正常工作
  • Laravel中的动态数据库连接
  • 提交Web表单时是设备吗?
  • 邮件功能和smtp在窗口服务器2008上不起作用
  • Codeigniter ajax请求不起作用
  • 选中时禁用禁用输入字段
  • PHP在递归数组中移动重复项

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华