I need to attach some code to all my textarea elements, this is working fine when run in
$(document).ready(function() {
$('textarea').textareaCount(options);
});
But I have textarea elements loaded via Ajax and templates, so any textarea elements loaded after the document is ready aren't included in the jQuery select and lose the behaviour I'm adding.
What's the best way of dealing with this?