I'm trying to give fadeout effect to a div & delete that div(id = "notification"), when an image is clicked.(当点击图像时,我正试图将fadeout效果赋予div并删除div(id =“notification”)。)
This is how I'm doing that:(这就是我这样做的方式:)
<a onclick="$("#notification").fadeOut(300,function() { $("#notification").remove(); });" class="notificationClose "><img src="close.png"/></a>
This seems to not be working.(这似乎不起作用。) What do I need to do to fix this?(我需要做些什么来解决这个问题?)
ask by RSilva translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…