What is wrong with this if statement?
- $(document).ready(function () {
- $('#mycarousel-next').click(function () {
- var z = $("ul.jcarousel-list-horizontal").css('left');
- if (z == 0) {
- alert(z);
- }
- });
- });
Doesn't ever alert.
However every click this does.
- $(document).ready(function () {
- $('#mycarousel-next').click(function () {
- var z = $("ul.jcarousel-list-horizontal").css('left');
- if (0 == 0) {
- alert(z);
- }
- });
- });
What am I doing wrong with the first statement?