Some of cool jQuery functions usage:
1. To add bounce animation to any element:
$(elem).addClass("animate bounce");
2. To add shake animation to any element:
$(elem).addClass("animate shake");
3. To disable buttons or any control elements:
$(elem).prop("disabled", true);
You can also use attr() function, but attr() is deprecated. So use prop().
No comments:
Post a Comment