You did not have an identifier. And something else that might cause problems later is the input that has the class attribute defined by TWICE, instead list each class in the same attribute, separated by a space:
<input id="datepicker" class="span2 datepicker" size="16" type="text" value="12-02-2012">
http://jsfiddle.net/EmwFE/2/
I noticed that you had built-in javascript trying to refer to it by the class $('.datepicker') , which did not work because you had a class attribute defined twice, and the second definition is ignored. The javascript panel used $('#datepicker') , which did not work because you did not have an identifier set on the input. That way any jquery selection method would work, you just had to fix the problems with the element.
source share