The code in a file on my computer
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link rel="stylesheet" href="style.css" type="text/css">
<script>
$("#word").blur(function() {
alert('test');
$("#fo").innerHtml("focusout fired");}
);
</script>
</head>
<body>
<div id='word' contenteditable="true" title="Character Name"></div>
<div id='foo'>Foo</div>
</body>
The Jfiddle
This code works (partly) in jfiddle, it will fire the event but not change the content of the foo div. So questions are:
- Why isn't it changing the content of the div in the fiddle.
- Why does the code on my local computer not work?