Thursday 13 June 2019

Create array list using jquery



<script src="~/plugins/jQuery/jquery-3.3.1.min.js"></script>


function GenerateList()
    {
        var pp = new Array();

        for (var t = 0; t < 2; i++) {
            debugger;
            var $trn = $(this);
            var json_arr = {};
            debugger;
            for (var i = 0; i < 10; i++) {
                json_arr["Col_" + i + ""] = "Value" + i;
            }
            var json_string = JSON.stringify(json_arr);
            pp.push(json_string);
        }
        $.ajax({
            url: '/Page/Methode',
            type: 'POST',
            data: { validID: pp },
            contenttype: "application/x-www-form-urlencoded", datatype: "html",
            success: function (data) {
                alert(1)
            }
        });

    }

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...