betterToggle

Sleek CSS3 toggling of Elements.

Single Element

code

 $("#click").click(function  () {
    $("example1").betterToggle();
});
                
Holi

Multiple Elements

Code

$("#click2").click(function  () {
    $(".example2").betterToggle();
})
                
holi
holi

Inserting Elements

$("#click3").click(function  () {
var insert = '<img style="display:none" src="images/holi3.jpg"';
$("#example3").append($(insert).betterToggle());
});
                

The inserting html should have display:none