ready写错了吧,我试了一下改成ready就可以了
$(document).ready(function(){

解决方案 »

  1.   

    ParentControl.html("hello");

    ParentControl.text("hello");
    是不一样的.
    你试试第二个.
      

  2.   

    补充一下:
    我用的是jQuery框架
      

  3.   

    ParentControl.text("hello"); 
      

  4.   

    找到原因了
    在jquery1.3.2下不行。
    换成jquery1.2.6通过。我的代码没写错,郁闷,请问各位高人,在1.3.2下应该如何写??? if ($childAdd[0] != null) {                $childAdd.empty();//这一行在1.2.6下也没问题,但是jquery版本换成1.3.2后,就报错这个问题不管如何,今天就结贴
      

  5.   

    我的也是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>