1
我使用的插件在这里http://plugins.jquery.com/project/autogrow和我在Internet Explorer和Chrome(不火狐)有一个问题自动增长jQuery插件在互联网动态内容资源管理器
下面见代码:
<script type="text/javascript">
$(document).ready(function() {
$('#main').html('<textarea class=\"test\">aaaa</textarea>');
$('.test').autogrow();
</script>
</head>
<body>
<div id="main">
</div>
</body>
</html>
基本上如果元素在启动页面后是新的,它不起作用。所以,我攻入了插件了一下,改变使用的liveQuery(68行)
this.textarea.livequery(function() {
$(this).focus(function() {self.startExpand()});
$(this).blur(function() {self.stopExpand()});
});
仍然无法正常工作,虽然Firefox是确定这些线不过。
你能帮忙吗?
我和你说的一样,但没有工作。你还有其他地方有改变吗? – 2009-09-16 07:17:20
没关系。我将代码改回原来的并且工作了! – 2009-09-16 07:24:54