$(document).ready( function() {
$('div').click( function() {
$('div').effect('explode');
});
});
- This simply means when the HTML document is ready, call the function click when <div> tag is clicked.
- Once <div> tag is click, call the function effect on the <dig> tag
- The function effect will be acted upon <div> tag with a parameter of 'explode'.
$('div').click( function() {
$('div').effect('explode');
});
});
- This simply means when the HTML document is ready, call the function click when <div> tag is clicked.
- Once <div> tag is click, call the function effect on the <dig> tag
- The function effect will be acted upon <div> tag with a parameter of 'explode'.
Comments
Post a Comment