jquery - how to bind a form data and rowselected data from jqGrid to server? -


I have a JGRD and after selecting and submitting a row, I must submit the data to that URL in which two Date Field

Now your help will be appreciated .. Thanks!

Update 1: <(function () {var initial date = jQuery ("input # e"). Val (); var latest timetable = jQuery ("input #e"). Val (); var grid = jQuery ("# ​​order preview"); var id = grid.jqGrid ('getGridParam', 'serro'); if (id) {var ret = grid.jqGrid (getRowData ', id); } $ .jax ({type: "post", url: "/cpsb/internalOrderList.do", data: {method: "create", lpn: ret.licensePlateNumber, sku: ret.sku, Description: Ret.description, Cases: ret.caseQuantity, Hold: ret.isHeld, Initial Date: ea RliestDate, Latest Time-Date: Latest Time-Date}})});

You can get data from the grid

  Var gridata = jQuery ("# ​​order preview"). GetRowData (); // a queued parameter  

then you can use

  $ Ajax ({type: "POST", url: "/cpsb/internalOrderList.do", data: griddata, datatype: "Jason"});  

To send data at one time because the data per post is sent and not per GET, you do not have a URL restriction.

The way you enter

  var initialestDate = jQuery ("input #E");) in your code. Var latesttime = jQuery ("input # e"). Val ();  

The ID "E" should probably be changed in one line.


Comments