Sum of two input value by jquery

前端 未结 7 2163
滥情空心
滥情空心 2020-12-06 04:30

I have code :

function compute() {
    if ($(\'input[name=type]:checked\').val() != undefined) {
        var a = $(\'input[name=service_price]\').val();
             


        
7条回答
  •  借酒劲吻你
    2020-12-06 05:13

    if in multiple class you want to change additional operation in perticular class that show in below example

    $('.like').click(function(){    
    var like= $(this).text();
    $(this).text(+like + +1);
    });
    

提交回复
热议问题