I'm attempting to create custom navigation with Unslider.
I want to advance to the next slide when I click on the slides.
I'm new to Javascript. My code as it stands is:
<script>
jQuery(document).ready(function($) {
$('.my-slider').unslider({
arrows:false
});
.on('click', function(){
.unslider('next');
});
});
</script>
HTML:
<div class="my-slider">
<ul>
<li><img class="img-pad" src="img/img-1.jpg" alt=""></li>
<li><img class="img-pad" src="img/img-2.jpg" alt=""></li>
<li><img class="img-pad" src="img/img-3.jpg" alt=""></li>
</ul>
</div>
I know it's wrong, but not how wrong.