check attribute value

check attribute value

Hi. I am new to jquery.
I have made a function, that should only work if my attribute style on ul is not  0. However I think I am doing it wrong. I want to check the value of style attribute, not the string.

  1.  $(function () {
  2.             $('.topTenTwocolumns .topTenTwocolumnsWrap .up').click(function () {
  3.                 $('ul').each(function () {
  4.                     bottom = this.getAttribute('style');
  5.                     if (bottom !== 'bottom: 0px;') {
  6.                         $(this).parents('.topTenTwocolumnsWrap').children('ul').stop().animate({
  7.                             bottom: '-=31'
  8.                         }, 50);
  9.                     }
  10.                 });
  11.             });
  12.         });