ready写错了吧,我试了一下改成ready就可以了
$(document).ready(function(){
$(document).ready(function(){
解决方案 »
- 求一段JavaScript,自动调整区域的高度
- 刷新页面,滚动条可定到上次位置,但每次都从最上面滚到上次位置
- alert为什么有时弹的出,有时要点显示桌面才能看到?
- 在 js中 创建文件 ,在ie下可以,在谷歌浏览器下不可以.
- 关于javascipt Base64加密用 Vbscript解密
- window.showModalDialog刷新父窗口的问题
- text的onChange()事件
- [在线等]请问论坛帖子列表的前面的+号展开是怎么做的?
- 最小化窗口命令是什么????
- HTML(asp.net)DIV刷新-JQUERY 代码
- 初学JAVASCRIPT有什么好书没?
- var isSPecialDeal=new Boolean("false"); 这个变量去反怎么写?------快速结贴
和
ParentControl.text("hello");
是不一样的.
你试试第二个.
我用的是jQuery框架
在jquery1.3.2下不行。
换成jquery1.2.6通过。我的代码没写错,郁闷,请问各位高人,在1.3.2下应该如何写??? if ($childAdd[0] != null) { $childAdd.empty();//这一行在1.2.6下也没问题,但是jquery版本换成1.3.2后,就报错这个问题不管如何,今天就结贴
<script language="javascript" src="jquery-1.3.2.min.js"></script>
<script>
$(document).ready(function(){
$("a").click(function(){
var ParentControl = $(this).parent();
alert(ParentControl.html());
ParentControl.html("hello");
});
});
</script><table>
<tr>
<td><a href="#" Title="测试">测试1</a></<td>
<td><span><a href="#" Title="测试">测试1</a></span></td>
</table>