Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.fn.addUiState = function() {
- $(this).hover(function() {
- $(this).addClass("ui-state-hover");
- }, function() {
- $(this).removeClass("ui-state-hover");
- }).mousedown(function() {
- $(this).addClass("ui-state-active");
- }).mouseup(function() {
- $(this).removeClass("ui-state-active");
- });
- }
Add Comment
Please, Sign In to add comment