Bootstrap 3 Template

This is a simple Twitter Bootstrap 3 template. You can fork it to get a ready to use Bootstrap 3 fiddle.

by sjmcpherson

HTML

<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<div id="gender" class="btn-group" data-toggle="buttons">
    <label class="btn btn-default">
        <input type="radio" name="profile[gender]" value="male">Male</label>
    <label class="btn btn-default">
        <input type="radio" name="profile[gender]" value="female">Female</label>
        <label class="btn btn-default"><input type="radio" name="profile[gender]" value="other">Other</label>
</div>

CSS

/* Latest compiled and minified CSS included as External Resource*/

/* Optional theme */
 @import url('//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css');
 body {
    margin: 10px;
}

JavaScript

var otherEl;

 

setTimeout(function () {
    otherEl = $("input[value='other']").parent();
    console.log( otherEl );
    $("input[value='other']").parent().remove();
}, 1000);



setTimeout(function () {
    $("#gender").append(otherEl);
}, 2000);