this is my script,here i'l changing the images on button click,which is in array.how should i make disable the button after the condition get false.

```js
var images=["image1","image2","image3"];
var count=0;

$("button").on('click', function(){
 if (count>=images.length) return;
 $(".img_src").attr('src','images/' + images[count] + '.jpg');
   count++;
 console.log(count);
});
```

```html
<div class="image_area">
<img class="img_src my_image" src="images/image1.jpg"/>
</div> 
<button >clickme</button>
```