whatman75 (owner)

Revisions

gist: 20418 Download_button fork
public
Public Clone URL: git://gist.github.com/20418.git
Embed All Files: show embed
JavaScript #
1
2
3
4
5
6
7
8
9
10
11
 $('.btn').each(function(){
          var b = $(this);
          var tt = b.html() || b.val();
      
            if ($(':submit,:button',this)) {
              b = $('<a>').insertAfter(this). addClass(this.className).attr('id',this.id);
              $(this).remove();
            }
      
          b.text('').css({cursor:'pointer'}). prepend('<i></i>').append($('<span>'). html(tt).append('<i></i><span></span>'));
        });