开发者

how to pass jquery row value one page to other page

Using this jquery code:

<a href="javascript:void(0)" id="m1">Get Selected id's</a> 

    jQuery("#m1").click( function() { var s; 
    s = jQuery("#list9").jqGrid('getGridParam','selarrrow'); alert(s); }); 

Double click evnt on the jquery grid row:

ondblClickRow: function(rowid, iRow, iCol, e) {
               开发者_运维百科    $("#tabs").tabs('enable', 1);
                   var $tabs = $('#tabs').tabs();
                    var selected = $tabs.tabs('select', 1);
                   },

I am getting the row value, here my question is on double click on each row I am going to second controller, there in second controller I need to get this value?


for getting a value in another page from the previous you can use $.cookie

$.cookie("example", "foo", { expires: 7 });

and then get it from cookie in the second page.

you need the jq cookie plugin though

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜