I am trying to implement some code on a inside page for web design company website using JavaScript and DOM. The issue I'm having is that I want to change the size of the textarea on blur. This text area changes from an input box to a textarea once the value length reaches a certain number, passed to the function call.

I cannot seem to reference this textarea after it is dynamically made in order to change it's size (I am attempting to collapse it onblur and have it expand onfocus). Any help is greatly appreciated! The link to the code is below:

http://forums.devshed.com/javascript-dev...