title: PHP Function in ajax url?
body: <p>I'm a new JQuery user and i have 2 questions</p>
  
  <ol>
  <li>How can I use PHP function in url field, for example I'm using Codeigniter and I want to put base_url function as a url.</li>
  <li>How can I request just an id from the page, not all the page.</li>
  </ol>
  
  <p>This is my code :</p>
  
  <pre><code>$(document).ready(function(){
      $('#module').change(function(){
          var module = $("select#module").val();
          var dataAll = 'module=' + module;
          $.ajax({
              url: "name.php",
              type : "POST",
              data : dataAll,
              dataType :"html",
              success : function(msg){
                  $('#result').html(msg)
              }
          });
      });
  });
  </code></pre>