3

Simple checkbox doesn't work inside tab-pane: http://jsfiddle.net/68RXP/22/

Does anybody know why it doesn't work? Thanks!

Sergey
  • 1,075
  • 14
  • 20
  • Duplicate : http://stackoverflow.com/q/11955861/1478467 - [solution (jsfiddle)](http://jsfiddle.net/Sherbrow/68RXP/25/) – Sherbrow Sep 29 '12 at 19:51

2 Answers2

6

In case I'm the only one who thinks this is the same question as twitter bootstrap tabs: links in content-panes not working


The attribute data-toggle="tab" should only be put on the link (or button) that toggles the tab, not the tab itself.

Demo (jsfiddle)

Community
  • 1
  • 1
Sherbrow
  • 17,279
  • 3
  • 64
  • 77
0

Had the same problem... couldn't get it working using the solution above. Noticed the code was the same as mine, with the exception I was doing what is said on bootstrap's page, regarding tab activation:

"Enable tabbable tabs via JavaScript (each tab needs to be activated individually):"

$('#myTab a').click(function (e) { e.preventDefault() $(this).tab('show') })

Removed this call in the JS file and it magically started to check the box. Tabs still working. Took a better read at that same page and stated I was doing extra stuff, which was unnecessary. Check you aren't doing the same.

Nuno Prata
  • 358
  • 4
  • 10