阅读背景:

使用JavaScript onclick删除元素并在SQL中保存变量

来源:互联网 

I am trying to add a function to a web app that removes a div when a user clicks on an "x" button that is placed over the div. The web app is written in ASP.NET. I also need an SQL table value to be updated stating that the user has closed the div,so next time the user loads the page, the undesired div isn't there.The issue here is that I want this to happen WITHOUT a page reload (postback). That way I can animate the div sliding/fading away with jQuery while having the app remember that is has been closed. Here's my code so far.I am trying to add a function to a web app that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: