jquery get value from input when get value from slider
<p>I have a input text </p>

<pre><code>&lt;span id="slider-result-dist"&gt;&lt;/span&gt;
&lt;div class="slider_dist slider"&gt;&lt;/div&gt; 
    &lt;input type="text" name="filter_dist_sea" id="dist-sea" value="&lt;?php echo $states['filter_dist_sea'] ?&gt;" /&gt;
&lt;/div&gt;
</code></pre>

<p>I have create a slider </p>

<pre><code>$( ".slider_dist" ).slider({
        animate: true,
            range: "min",
            value: 100,
            min: 1,
            max: 1000,
    step: 100,
            slide: function(event, ui) { 
            $( "#slider-result-dist" ).html( ui.value+' Mt' );
    $('#jea-search-dist-sea&lt;?php echo $uid ?&gt;').attr('value', ui.value);
            }
    });
     }); 
</code></pre>

<p>I need to use the function change like this, but does not work</p>

<pre><code>$('#dist-sea').change(function() {
  alert('change');
});
</code></pre>

<p>I know the good way is this :</p>

<pre><code>$( ".slider_dist" ).slider({

            slide: function(event, ui) { 
            alert(ui.value);
            }
    });
</code></pre>

<p>It' s possible get the value from input when change from slider ?</p>
