Pages

Monday, August 10, 2015

Buttons and alerts

Buttons and Alerts

This example shows off how to use buttons and jQuery together. Click the buttons to see the alert message.

No comments:

Post a Comment

$(function() { $('#activator').click(function(){ $('#overlay').fadeIn('fast',function(){ $('#box').animate({'top':'160px'},500); }); }); $('#boxclose').click(function(){ $('#box').animate({'top':'-200px'},500,function(){ $('#overlay').fadeOut('fast'); }); }); });