+ Start a Discussion
Puja ChoudharyPuja Choudhary 

get the text value data for each row using jquery

I have a jquery popup window which has image , Dish name,quantity and price for various rows. I am able to fetch the data for each row and save in the back end. Now I want to add one text box in each row , showing the remarks .But I am not able to save the remark data from frontend to backend.

var products = ProductManager.getAllProducts();
      $.each(products, function(){
        var total = this.quantity * this.price;
          '<tr title="' + this.summary + '" data-id="' + this.id + '" data-price="' + this.price + '">' +
          '<td class="text-center" style="width: 30px;"><img width="30px" height="30px" src="' + this.image + '"/></td>' +
          '<td>' + this.name + '</td>' +
          '<td title="Unit Price">Rs ' + this.price + '</td>' +
          '<td title="Quantity"><input type="number" min="1" style="width: 70px;" class="' + classProductQuantity + '" value="' + this.quantity + '"/></td>' +
          '<td title="Total Amount" class="' + classProductTotal + '"> Rs ' + total + '</td>' +
          '<td title="remark">  <input type="text" id="txtREMARKS" placeholder="Enter your remarks" /> </td>' +
          '<td title="Remove from Cart" class="text-center" style="width: 30px;"><a href="javascript:void(0);" class="btn btn-xs btn-danger ' + classProductRemove + '">X</a></td>' +

Puja ChoudharyPuja Choudhary
User-added image
David HalesDavid Hales
Hi Puja,
I have one example,
$('.chk').change(function () { 
    function (i) {

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="tablediv">
<table border="1" id="itemtable" align="center"> 
        <th scope="col">Item name</th>
        <th scope="col">Item code</th>
        <th scope="col">Supplier</th>
        <th scope="col">Received qty</th>
        <th scope="col">Accepted qty</th>   
        <th scope="col">Rejected qty</th>      
        <th scope="col">Remarks</th>             
            <td><input type="checkbox" class="chk" ></td>
            <td><input type="checkbox" class="chk" ></td>

either go through with

if  didn't get any solution feel free communicate with me

If the above suggestion worked, let us know by marking the answer as "Best Answer" right under the comment which will help the rest of the community should they have a similar issue in the future. 

Thanks & Regards 
David Hales(1044)
Kloudrac Software Pvt. Ltd.