title: How to disable next/prev button when slider have only one image?
body: <p>When slider have one image then don't want next/prev button but if slider have more than 1 images then required next/prev button. Can you please suggest me JavaScript code to do. I know how to disable next/prev through controls false </p>
  
  <pre><code>controls : false
  </code></pre>
  
  <p>but it is also false when image have more than one image.
  Here is my code,</p>
  
  <pre><code>&lt;script&gt;
  var imgCnt = $('#images div').val(); //get images count.
  if(imgCnt == 1){
  $('.bxslider').bxSlider({
  controls:false
  });
  }else{
  controls:true
  }
  &lt;/script&gt;
  </code></pre>