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 Dwza

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">
<input type='text' class='form-control' name='foo' id='foo' />

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

// just a variable
var myValue = 'here';

//set the value of #foo
$('#foo').val('here');

//alert the value of #foo
alert('I am ' + $('#foo').val() );

//change or empty (what is also a change) the value of #foo
//$("input[value='" + myValue + "']").val(''); //(doesnt work)
//next try
$("body").find("input[value='" + myValue + "']").val('gone');

//alert the new or changed value of #foo
alert('I am ' + $('#foo').val() );