I have a table and every row has a form:
<td><input type="date" id='time'/></td>
<td><input type="text" id='info'/></td>
<td><input type="text" id='money'/></td>
<td><input type="buttond" id="submit_edit" value="edit"/></td>
The problem is I can't submit a form like this, so I need to submit this with JavaScript, and I need to submit it using the POST method. I want the POST method to do this as one row; I will change the id of the inputs later.
This is not like this question: How to submit a form with JavaScript by clicking a link?
I want to send data manually by id. The correct thing I need is like this
$(document).ready(function(){
    $("#submit_edit").click(function(){
        var time=$("#time").val();
        var info=$("#info").val();
        var money=$("#money").val();
         $.ajax(
        {
          type: "POST",
          url: "edit.php",
          data: {time:time , info:info,:money:money},
          success: function(html)
          {
            $("#edit_result").html(html).show();
          }
        });
    });
});
 
     
     
    