I want to make if `margin-left` is `900px` click method to DISABLE, I tried everything what I could but not nothing works.

```
$(document).ready(function(){
                var img = $("img");

                $('.aa').click(function(){
                    img.animate({ marginLeft: '-=900px'}, 700) })

                $('.uu').click(function(){
                    img.animate({ marginLeft: '+=900px'}, 700) })
                    if(img.css('margin-left') == '900px'){
                        // I want click to be disabled if margin-left hits 900px
                    }
                })

```

```
<div id="slide">
            <ul class="slides">
                <li class="slide"><img src="image1.jpg" alt=""></li>
                <li class="slide"><img src="image2.jpg" alt=""></li>
                <li class="slide"><img src="image3.jpg" alt=""></li>
            </ul>
        </div>

```