title: jquery slider not loading through ajax div
body: <p>I have a jquery slider that works fine, however when I load it through a ajax targeted div it does not appear visible. My scripts for the ajax and slider are as follows;</p>
  
  <p>AJAX</p>
  
  <pre><code>function showSearchOptions(search, distance) {
      if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
          xmlhttp = new XMLHttpRequest();
      } else { // code for IE6, IE5
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
      xmlhttp.onreadystatechange = function () {
          if (xmlhttp.readyState == 4 &amp;&amp; xmlhttp.status == 200) {
              document.getElementById("searchoptions").innerHTML = '';
              document.getElementById("searchoptions").innerHTML = xmlhttp.responseText;
          }
      }
      xmlhttp.open("GET", "search.php?ajax=yes&amp;method=options&amp;search=" + search + "&amp;distance=" + distance, true);
      xmlhttp.send();
  }
  </code></pre>
  
  <p>SLIDER</p>
  
  <pre><code>$(document).ready(function () {
      $("#slider2").slider({
          range: true,
          min: $minprice,
          max: $maxprice,
          values: [$minprice, $maxprice],
          slide: function (event, ui) {
              $("#amount").val($("#slider2").slider("values", 0));
              $("#amount2").val($("#slider2").slider("values", 1));
              $("#slidervalues").html("&amp;pound;" + $("#slider2").slider("values", 0) + " -     &amp;pound;" + $("#slider2").slider("values", 1));
          }
      });
      $("#amount").val($("#slider2").slider("values", 0));
      $("#amount2").val($("#slider2").slider("values", 1));
      $("#slidervalues").html("&amp;pound;" + $("#slider2").slider("values", 0) + " -     &amp;pound;" + $("#slider2").slider("values", 1));
  });
  </code></pre>
  
  <p>Thanks in advance.</p>