You have a syntax error, your code is missing an (
:
$(document).ready(function(){
And an other reason may be that you aren’t loading jQuery in your fiddle. To do so, on the sidebar click the dropdown menu and select one of the jQuery items.
7
solved How to properly use a callback function with jQuery’s document.ready [closed]