How To Get Elastic.js For Text Areas Working in Vantage?
I've got this loading between the head tags:
Code:
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.elastic.source.js"></script>
<script type="text/javascript">
// <![CDATA[
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('textarea').elastic();
jQuery('textarea').trigger('update');
});
// ]]>
</script>
But it does not catch on, the text area fields will not grow with the text, it's not elastic.
However, when I save the page as regular HTML and then check the functionality it works fine.
Because the custom fields are generated dynamically, and if you view source, right click and view source, then you'll see there are no visible fields.
Therefor the elastic.
js does not work.
How can the jQuery above be adjusted so it works on the dynamic generated content as well?