Created
April 8, 2014 05:30
-
-
Save peterblazejewicz/10094284 to your computer and use it in GitHub Desktop.
local content jQuery load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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