Javascript ,以及其他一些更改,从而完成考虑中的代码。我真的很感谢你的帮助!你在这方面的知识值得称赞。再次感谢! <cms:repeatable name="item_detail" label="Item Detail"

Javascript ,以及其他一些更改,从而完成考虑中的代码。我真的很感谢你的帮助!你在这方面的知识值得称赞。再次感谢! <cms:repeatable name="item_detail" label="Item Detail",javascript,php,jquery,ajax,couch-cms,Javascript,Php,Jquery,Ajax,Couch Cms,,以及其他一些更改,从而完成考虑中的代码。我真的很感谢你的帮助!你在这方面的知识值得称赞。再次感谢! <cms:repeatable name="item_detail" label="Item Detail" order="10" > <cms:editable name="product" label="Product" type="dropdow

,以及其他一些更改,从而完成考虑中的代码。我真的很感谢你的帮助!你在这方面的知识值得称赞。再次感谢!
<cms:repeatable name="item_detail" label="Item Detail" order="10" >
    
    <cms:editable name="product" label="Product" type="dropdown" opt_values="Select =- | <cms:pages masterpage='product/product.php' order='asc' orderby='product_name'><cms:show product_name /><cms:if '<cms:not k_paginated_bottom />'>|</cms:if></cms:pages>" order="1" />
    <cms:editable name="product_hsn" label="HSN" type="text" order="2" />hsn,qty,price,gst,amount
    <cms:editable name="product_qty" label="Quantity" type="text" order="3" />
    <cms:editable name="product_price" label="Price" type="text" order="4" />
    <cms:editable name="product_tax" label="Tax" type="text" order="5" />
    <cms:editable name="product_line_total_amount" label="Amount" type="text" order="6" />

</cms:repeatable>  
var counter = 0;
$(document).ready(function() {
    $(".addRow").click(function(){
        counter++;
    });
});
            
$(document).on('change','select',function() {
    var data = "";
    var i = 0;
    $.ajax({
        type:"GET",
        url : "<cms:show k_site_link />generate/quotation-ajax.php",
        data: 
            "select_id="+$(this).val(),
        async: false
    }).done(function(data) {
        $('#f_item_detail-'+ counter +'-product_hsn').val(data.product_details[i].product_hsn);
        $('#f_item_detail-'+ counter +'-product_qty').val(data.product_details[i].product_qty);
        $('#f_item_detail-'+ counter +'-product_price').val(data.product_details[i].product_price);
        $('#f_item_detail-'+ counter +'-product_tax').val(data.product_details[i].product_tax);
        $('#f_item_detail-'+ counter +'-product_line_total_amount').val(data.product_details[i].product_line_total_amount);
    })
});
var counter = 0;
$(document).ready(function() {
    $(".addRow").click(function(){
        var globalcounter = parseFloat(counter);
        counter++;
    });
});
$('#f_item_detail-'+ counter +'-product_hsn').val(data.product_details[i].product_hsn);