JQuery for finding index of row 
<p>Question :-JQuery for finding index of row  ?when textbox value is changed that changed value send to the controller action and return value  put coloumn in the same row</p>

<p>JQuery for finding index of row when textbox value is changed and from Action return value in the another coloumn in the same row </p>

<pre><code>$(document).ready(function() {
    $("#Quantity").keyup(function() {
        var col = $("#Quantity").parent().children().index($(this));
        var row = $("#Quantity").parent().parent().children().index($("#Quantity").parent());
        var quantity = $('#Quantity').val();
        alert('Row: ' + row + ', Column: ' + col + ', Quantity : ' + quantity);

        var url = '@Url.Content("~/")' + "ShoppingCart/selectQuantity";
        var qtity = '#Quantity';
        $.getJSON(url, {
            quantity: $(qtity).val()
        }, function(data) {
            $(".TotalPrice").text(data);
        });
    });
});
</code></pre>
