I did manage to get the previous image in the carousel on click but I'm not able to specify the "data-slide-to" image 

This is the code for getting the previous image on click 

```
$("#header").carousel('prev');

```

but while implementing the second one I'm getting no response

```
$("#header").carousel($(this).data('slide-to',0));

```