开发者

how to send the value from one tab to other tab

I am using this code to go to other tab one double click:

 ondblClickRow: function() {
                var $tabs = $('#tabs').tabs();
                var s开发者_如何学Goelected = $tabs.tabs('select', 2);
                },

I am going to second tab on double click, I need to know is there anything way that we can pass the value.

I am getting a value in tab1 I am going to use the same value in tab2, is there any way I can do this?


Kumar, Hi again, It seem you are using JQGrid with this implementation. If so, the ondblClickRow event allows you to pass the following values (rowid,iRow,iCol,e).. by using this you could from one tab doubleClick the row and enter the next tab with the corresponding row selected. try something LIKE this

ondblClickRow: function (rowid, iRow, iCol, e)
{
  var $tabs = $('#tabs').tabs(); 
  var selected = $tabs.tabs('select', 2); 
  //now using rowID you can select grid values in your main grid  by $("#[your mainGrid]").getRowData(rowid)
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜