我jQuery是不是表明我希望它在http://jsfiddle.net/jspence29/a3BQR/1/的onClick没有显示DIV
我想大的div当你在按钮和dissapear点击,当你再次点击出现在div,但它只是ISN” t出现。谢谢
另外,什么是更推荐使用CSS更改jQuery或只是这个显示和隐藏查询?
$(".first1").onClick(
function() {
$('#suitsyou').show();
},
function()
$('#suitsyou').hide();
});
或类似
$("div").click(function() {
var color = $(this).css("background-color");
$("#result").html("That div is <span style='color:" +
color + ";'>" + color + "</span>.");
});