Home > front end >  Jquery's grid after adding an editable text box, how to obtain the value of the text box
Jquery's grid after adding an editable text box, how to obtain the value of the text box

Time:10-01

The function search () {
The list=$(' # list '). The grid ({
Url: "& lt; C: out value='{contextPath} https://bbs.csdn.net/topics/$/& gt;" + "/dealermanage/PI/newPI/saleList json",
//request address
Root: 'dealerSale',//the background () function returns the name of the query result set, can be called casually, consistent can
PageSize: 10,//each page 10 records
The paging: true,//need paging
ShowPageSize: true,//show each page number options
Fields: [//cycle show in the result set each object of the specified attribute
{id: "f_product_setting", name: 'product number'},//same as above
{id: "f_currency", name: 'currency type},//same as above
{id: "f_price", name: 'price'},//same as above
{id: "f_remark", name: 'remarks'},
{id: "num" name: "number", render: function (dealerSale) {
Return "& lt; Input type='text' & gt; ";
}}

]});
}
Obtained from the background data in the grid, then increase the number of columns of text box, in the text box input digital, click ok button to write the number of finished products and corresponding into backstage, I don't know how to implement
Click on the confirmation of function following
The function confirm () {
Var customId="";
If (list) {


}

}

CodePudding user response:

What the framework of the grid, oneself see API, has its own function name don't like js built-in function name, then you cry

CodePudding user response:

Jquery GRID, which can give a link API

CodePudding user response:

https://blog.mn886.net/jqGrid/
  • Related