Skip to content

Instantly share code, notes, and snippets.

@peterblazejewicz
Created April 8, 2014 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterblazejewicz/10094284 to your computer and use it in GitHub Desktop.
Save peterblazejewicz/10094284 to your computer and use it in GitHub Desktop.
local content jQuery load
$(function(){
'use strict';
$(document.body).on('click', '.btn', function(event){
var btn = $(event.currentTarget);
$('#container').load('./bower_components/jquery/AUTHORS.txt', function(){
btn.attr('disabled', true);
btn.text('Loaded');
btn.addClass('btn-success');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment