Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created April 15, 2014 12:49
Show Gist options
  • Save ABooooo/10729822 to your computer and use it in GitHub Desktop.
Save ABooooo/10729822 to your computer and use it in GitHub Desktop.
jquery add text or something
// add in back
$( '.class' ).prepend( '<i class="fa fa-lock"></i> ' );
// add in front
$( '.class' ).apend( '<i class="fa fa-lock"></i> ' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment