Hi,
I'd like to add some data to postdata before the plugin submit the form to the correct file.
I tried this :
|
1 2 3 4 5 6 7 |
$('#myid').jqGrid('navGrid', '#pager',<br /> {edit: true, add: true, del: true},<br /> {<br /> beforeSubmit: function(postdata, formid){<br /> postdata.something = 'somevalue';<br /> }<br /> }); |
But when I submit, I got this error :
Uncaught TypeError: Cannot read property '0' of undefined
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top