Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Events 101 question

By: a guest on Feb 20th, 2012  |  syntax: JavaScript  |  size: 0.26 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $this
  2.     .siblings('button')
  3.         .removeAttr('disabled')
  4.         .end()
  5.         .attr('disabled', 'disabled');
  6.  
  7. //wouldnt this code bellow work better?
  8.  
  9. $this
  10.     .attr('disabled', 'disabled')
  11.     .siblings('button')
  12.         .removeAttr('disabled');
clone this paste RAW Paste Data