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.
- $(function () {
- $('.topTenTwocolumns .topTenTwocolumnsWrap .up').click(function () {
- $('ul').each(function () {
- bottom = this.getAttribute('style');
- if (bottom !== 'bottom: 0px;') {
- $(this).parents('.topTenTwocolumnsWrap').children('ul').stop().animate({
- bottom: '-=31'
- }, 50);
- }
- });
- });
- });