Guest User

Untitled

a guest
Jan 22nd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $.fn.addUiState = function() {
  2. $(this).hover(function() {
  3. $(this).addClass("ui-state-hover");
  4. }, function() {
  5. $(this).removeClass("ui-state-hover");
  6. }).mousedown(function() {
  7. $(this).addClass("ui-state-active");
  8. }).mouseup(function() {
  9. $(this).removeClass("ui-state-active");
  10. });
  11. }
Add Comment
Please, Sign In to add comment