2011-07-26 5 views
0

다음 코드가 있습니다. 그것은 파이어 폭스에서 잘 작동하지만 ie9에서 작동하지 않습니까?elastic plugin이 (ie9에서 작동하지 않습니다.)

<script src="http://google-cdn.joinpgn.com/js/jquery/jquery-1.5.2.min.js"></script> 
<!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> 
<script type="text/javascript" src="js/jquery.elastic.source.js"></script> 

<textarea id="description" style="overflow: hidden; height: 20px;">This textarea is going to grow when you fill it with text. Just type a few more words in it and you will see. </textarea> 

<script> 
jQuery('#description').elastic(); 

</script> 

<style> 

textarea { font-family: Arial, 'sans-serif' } 
</style> 

답변

0

코드가 엉망이고 깨끗하지 않고 $ (function())이 시작되지 않았습니다.

<script type="text/javascript"> 
    $(function(){ 
    $('#description').elastic(); 
    }); 
    </script> 
+0

아무런 변화가 없습니다. 코드가 여전히 IE9에서 작동하지 않습니다. – Gurnor

관련 문제