如何获取JQGrid日期列值

时间:2015-09-22 12:54:03

标签: javascript jquery jqgrid jqgrid-asp.net jqgrid-formatter

在我的JQgrid中有一个日期列,我添加了一个日期选择器来获取日期。 现在,我想在单击“保存”按钮时获取获取的日期值。为此,我添加了以下代码来获取值,但它不起作用,它未定义。

{ name: 'DD', index: 'DD', width: (pageWidth*(9/100)), editable: true ,editoptions: { dataInit: function(el) { setTimeout(function() { $(el).datepicker(); }, 200); } } }, 

在我的函数中获取此列值,

function myFun() {
    var findSubGrid = $('#myGrid') ;
    var myDate=  $('text#'+'DD').val() 
    // Getting Error here is undefined.    
}

如何在我的功能中选择日期?

0 个答案:

没有答案