Jquery get .val

后端 未结 3 768
暗喜
暗喜 2021-01-26 13:22

What I need is the \"this\" value of

( $(this).attr(\"value\")); 

to show up in the \"this\" of

$(\"#activities_\" +btn_id).val         


        
3条回答
  •  日久生厌
    2021-01-26 14:02

    This is what my boss gave me to work with.

    $('.thoughts_list').click(function(){
        ( $(this).attr('id'));
        ( $(this).attr("value"));
    }); 
        $('#close_thoughts').click(function(){
    
        $("#activities_" +btn_id).val($('input[name=thoughts_list]:checked').val());    
    }); 
    

提交回复
热议问题