English 中文(简体)
• 如何利用 j进行gle笑表演? [复制]
原标题:How to toggle jqGrid display using jQuery? [duplicate]

我们有两个支离破碎的电网——我们只想在用户投入的基础上展示一个。

每个电网一旦显示,应在同一地点出现在屏幕上。

实现这一目标的最容易的方法是什么?

目前,我们刚刚建立了我们的“超文本”(<table id=“list”></table>,然后我们建立了“$>#list”的网格。 jqGrid({......)。

问题回答

jqGrid在桌上和页上创造了一些小块。 含有所有支离破碎元素的碎块,就你而言,是一把id子 with到“箱子”。

因此,为了隐藏电网:$(>#g Box_list”).hide(;,并显示:$(“#g Box_list”);show(。 如果你想要使用你需要的另一条角效应,但用同样的<代码>$(“#g Box_list”物体。

传真:

<a href="#" id="click1">Toggle</a>
<table class="list" id="list1"></table>
<table class="list" id="list2" style="display: none;"></table>

JQuery:

$("a#click1").click(function() {
    $("table#list1").toggle();
    $("table#list2").toggle();
});

PS。 我很想知道,jqGrid是否将处理有<代码>的显示:无<>/代码”的项目,从而有效地从OM中删除;它是否打算把角(ggle)功能改为使用可见性财产。

$("table.list").toggle(
    function() {
        $(this).css({"visibility": "hidden"});
    },
    function() {
        $(this).css({"visibility: "visible"});
    }
);




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签