Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created August 30, 2011 15:12
Show Gist options
  • Save tommedema/1181128 to your computer and use it in GitHub Desktop.
Save tommedema/1181128 to your computer and use it in GitHub Desktop.
/* create button */
var button = jQuery('<a></a>', {
href: '#'
, text: '[ Remove ]'
}).css({
'padding-left': '10px'
}).get(0);
/* attach to file list item */
jQuery(fileListItem).append(button);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment