English 中文(简体)
具有相同内容的新窗口和小改动
原标题:new window with same content and a small change
  • 时间:2011-09-26 03:19:57
  •  标签:
  • window

我在实验室有一页,有几张检查箱。 每当用户选择一个检查箱时,我就希望用一个单.子改变检查箱。 请让我谈谈我应如何这样做?

问题回答

如果你重新使用 j子,你可以有一丝不:的联系:

<a href="#" class="undo">undo</a>

$(document).ready(){ function(){    //wait until the page has loaded
  $(".undo").click(function(){      //bind to the click event of your undo link
    $(".checkbox").attr( checked , !$(".checkbox").attr( checked ))  // Toggle the checkbox
   })
})

当然,这假设你只有一个检查箱。 是否有必要更多地了解您为了解您如何希望用户经验而建立的目前情况。





相关问题
Running jQuery command from modal window to affect main page

I m currently trying to write a jQuery script which opens a modal box then (upon user entry) changes a value on the original page. Currently I ve got the script working on just the page itself (...

Animate Window Resize (Width and Height) C# WPF

I m looking for some help on animating window resize of an open window! Cant seem to figure this one out! I m just using atm. this.Width = 500; Any help would be great! Thanks.

Cant drag and move a WPF Form

I design a WPF form with Window Style=None. So I Cannot see the drag bar in the form. How can I move the Form with WindowStyle=None Property?

Win32 CreateWindow() call hangs in child thread?

I m working on a portability layer for OpenGL (abstracts the glX and wgl stuff for Linux and Windows)... Anyhow, it has a method for creating a Window... If you don t pass in a parent, you get a real ...

WPF-XAML window in Winforms Application

I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.

热门标签