Horje
jquery post json example Code Example
jquery post json example
<script type="text/javascript">
    function send() {
        var person = {
            name: $("#id-name").val(),
            address:$("#id-address").val(),
            phone:$("#id-phone").val()
        }

        $('#target').html('sending..');

        $.ajax({
            url: '/test/PersonSubmit',
            type: 'post',
            dataType: 'json',
            contentType: 'application/json',
            success: function (data) {
                $('#target').html(data.msg);
            },
            data: JSON.stringify(person)
        });
    }
</script>




Javascript

Related
javascript remove last character from string Code Example javascript remove last character from string Code Example
javascript get last character of string Code Example javascript get last character of string Code Example
Javascript remove last character Code Example Javascript remove last character Code Example
js format price Code Example js format price Code Example
google chart hide axis label Code Example google chart hide axis label Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7