Jquery 弹性插件不工作

Jquery 弹性插件不工作,jquery,elasticlayout,Jquery,Elasticlayout,我正在尝试安装弹性插件。这是我第一次安装任何插件。我从网站上传了jquery.elastic.source.js和jquery.js两个文件。以下是我的代码: <script type="text/javascript" src="js/jquery.elastic.source.js"></script> <script type="text/javascript" src="js/jquery.js"></script> <script

我正在尝试安装弹性插件。这是我第一次安装任何插件。我从网站上传了jquery.elastic.source.js和jquery.js两个文件。以下是我的代码:

<script type="text/javascript" src="js/jquery.elastic.source.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script src="http://google-cdn.joinpgn.com/js/jquery/jquery-1.5.2.min.js"></script> 


<textarea id="description">
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>
body { background: #0D1114; }
.project-name a { padding: 0; color: #3cf; text-transform: uppercase; font: bold 13px/30px 'Arial', 'sans-serif'; }

textarea { padding: 10px; width: 300px; font-family: Arial, 'sans-serif' }
</style>

当你用文本填充它时,这个文本区域将会增长。只需在其中再键入几个单词,您就会看到。
jQuery('#description').elastic();
正文{背景:#0D1114;}
.project name a{填充:0;颜色:#3cf;文本转换:大写;字体:粗体13px/30px'Arial',无衬线';}
text区域{填充:10px;宽度:300px;字体系列:Arial,'sans serif'}

它不起作用。我做错什么了吗?

在包含
jquery.js
之后,需要包含
jquery.elastic.source.js

您的脚本标记应该如下所示:

<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.elastic.source.js"></script>



什么是
js/jquery.js
?如果这只是jQuery源代码,那么为什么还有
jQuery-1.5.2.min.js
源代码呢?你只需要一个或另一个。压缩了
.min.js
版本,但代码与非min源代码相同。最后,在加载jQuery源代码之后,您的弹性源代码应该会出现。@Hristo如果您能帮助我,还有一件事吗?它在右边添加了一个滚动条,为什么?我能把它拿走吗?我想出来了。如果其他人也在寻找同样的东西,这里的代码是:当你用文本填充它时,这个文本区域将会增长。只需在其中再键入几个单词,您就会看到@古诺。。。可能有几个原因。您能提供一个关于jsFiddle.net的小示例吗?如果单击左侧的“添加资源”,则可以添加弹性源。
<script type="text/javascript" src="js/jquery.elastic.source.js"></script>
<script src="http://google-cdn.joinpgn.com/js/jquery/jquery-1.5.2.min.js"></script>