Reputation: 25
For some reason when I generate this using jquery to fill in my table. The checkboxes don't come out as they should with twitter bootstrap.
<tr>
<td align="center">
<label class="checkbox inline">
<input id="cbox" type="checkbox" name="CheckGroup1" value="somenumber"; />
</label>
</td>
<td align="center">
<label class="radio">
<input id= "box" type="radio" name="RadioGroup1" value="somenumber" />
</label>
</td>
</tr>
Upvotes: 0
Views: 1885
Reputation: 18155
When reviewing the fiddle you posted in Google Chrome, and then using Chrome's debugger (F12), and then viewing the Console in the debugger, you may find the following error:
Uncaught SyntaxError: Unexpected token ILLEGAL
The syntax error points to here:
attributes = ['blah", "blah", "blah", "blah...
So in the very first blah
item in the array, the enclosing quotes are mixed: single quote and double quote.
But if you change this to:
attributes = ["blah", "blah", "blah", "blah...
...then your html should render properly, as with the following fork of your fiddle. http://jsfiddle.net/cykm5/4/
Is this what you meant when you said, "The checkboxes don't come out as they should..."?
Upvotes: 1