I'm using ckeditor as my textarea in a form. When someone types into the textarea I want a div to appear elsewhere on the screen while they type. e.g. they type fiddly-piddly-poo and fiddly-piddly-poo appears in a div below the textarea. I don't really know much about javascript unfortunately (learning) and I can't get it to work.
The code I'm trying is:
$('#CampaignStory').bind("propertychange input", function() {
$('#story').text($(this).text());
});
<div class="input textarea">
<label for="CampaignStory">Story</label>
<textarea name="data[Campaign][story]" class="ckeditor" id="CampaignStory" ></textarea>
</div>
<div id="story"></div>
This doesn't work and I have no idea why. Can anyone help me out?