0

I am using a master layout for my website. But on one of the pages, I want that only the content in main div appears focused while others are disabled; just like in jquery popup. Is there a way to achieve this

4

1 回答 1

1

目前尚不完全清楚您的目标是什么。如果我试图禁用页面上的所有控件,除了主 div 上的控件,我可能会得到一些 javascript:

<body onload="desableControls()">
...
<div id="mainDiv">
...

<script type="text/javascript">
    //disable everything
    $("input").attr("disabled", "disabled");
    //enable controls on your main div
    $("#mainDiv input").removeAttr("disabled");
</script>
于 2012-10-03T15:10:04.560 回答