本帖最后由 CNLAN 于 2009-11-21 10:46:48 编辑

解决方案 »

  1.   

    $("#My").click(function() {} 可以这样吗?
    试试绑定事件的方法 $("#My").bind('click', function(){} )
      

  2.   

    $('input[name=Mytest]:first').attr("checked", true);  
    or
    $('input[name=Mytest]').eq(0).attr("checked", true);
    or
    $('input[name=Mytest]')[0].checked = true;
    or
    $('input[name=Mytest][value=abc]').attr("checked", true);
    or
    ...
      

  3.   


     $(document).ready(function() {
        $("#My").click(function() {    $('input[name=Mytest].eq(0)').attr("checked", "abc");
            });
        });
    试试
      

  4.   

    $("input[name=Mytest]").attr("checked", "checked");
      

  5.   

    $("#My").bind('click',function() {
        $('input[name=Mytest]:first').attr("checked", "abc");
            });
      });或者
     $("#My").bind('click',function() {
        $('input[name=Mytest]:eq(0)').attr("checked", true);
            });都可以
      

  6.   

    最终结果可以使用:$('input[name=Mytest][value=abc]').attr("checked", true);