Sleek CSS3 toggling of Elements.
$("#click").click(function () { $("example1").betterToggle(); });
$("#click2").click(function () { $(".example2").betterToggle(); })
$("#click3").click(function () { var insert = '<img style="display:none" src="images/holi3.jpg"'; $("#example3").append($(insert).betterToggle()); });
The inserting html should have display:none