title: noUISlider: Linking Slider to an Input
body: <p>I'm using the noUiSlider to link a slider and an input as shown in the example on this page: <a href="http://refreshless.com/nouislider/linking-input-fields/" rel="nofollow">http://refreshless.com/nouislider/linking-input-fields/</a></p>
  
  <p>$("#slider").Link('lower').to($('#input'));</p>
  
  <p>That works fine. However, if the value is negative (-1), is there a way I can convert to the absolute value (1) before passing to the input? I thought something like this:</p>
  
  <pre><code>$("#slider").Link('lower').to('#input',function(value){
      $(this).val(Math.abs(value));
  });
  </code></pre>
  
  <p>That doesn't work. Any help would be appreciated. Thanks!</p>