JQUERY in 2 different environments. Standard PHP and MVC. 1st works 2nd does not
<p>The issue is: It loads the selected index value alright in the first environement.</p>

<p>It does not send it in the second, MVC codeigniter. The controller does not get the selected index that before load did send.</p>

<p>1st one WORKS: Look how easy is to understand.</p>

<pre><code>//jquery code for source list
$(document).ready(function()
      {
        $('#sel_pais').change(function()
             {
              if ($(this).val()!='')
             {
            $("#sel_source").load("includes/getchilds5.php",{pais_id: $(this).val()});
             }
                 });

    });  // end of first function

=========================================================
getchilds5.php file

if(isset($_REQUEST['pais_id']) &amp;&amp; !empty($_REQUEST['pais_id'])) {
    $result = mysql_query("select * from tabla_from where pais_id='".$_REQUEST['pais_id']."' ");
    if(mysql_num_rows($result) &gt; 0) {
        echo '&lt;option value=""&gt;Select&lt;/option&gt;';
        while($row = mysql_fetch_assoc($result)) {              
                echo '&lt;option value="'.$row['id_from'].'"&gt;'.$row['from_name'].'&lt;/option&gt;';
        }
    } else {
        echo '&lt;option value=""&gt;Select&lt;/option&gt;';
    }
}  # end of IF ISSET FOR PAIS
</code></pre>

<p>=======
Now MVC It does not work, because the controller is not getting the value:</p>

<pre><code>$(document).ready(function()
        {
         $('#country').change(function() 
                 {
                  if ($(this).val()!='') 
                      {
                       $("#source").load("/CI-3/application/controllers/control_form.php/",{pais_id: $(this).val()},  

                      }

                  });

        });  // end of first function
&lt;/script&gt;


============================================================



        &lt;?php echo form_open('control_form/add_all'); ?&gt;
       &lt;label for="country"&gt;Country&lt;span class="red"&gt;&lt;/span&gt;&lt;/label&gt;
        &lt;select id="country" name="country"&gt;
            &lt;option value=""&gt;Select&lt;/option&gt;
            &lt;?php

                foreach($result as $row)
                {
                echo '&lt;option value="' . $row-&gt;pais_id . '"&gt;' . $row-&gt;pais_name . '&lt;/option&gt;';
                }

            ?&gt;
        &lt;/select&gt;

        &lt;label for="source"&gt;Source Language&lt;span class="red"&gt;&lt;/span&gt;&lt;/label&gt;
        &lt;!--this will be filled based on the tree selection above--&gt;
        &lt;select id="source" name="source"&gt; 
            &lt;option value=""&gt;Select&lt;/option&gt;

           &lt;?php
===============================================================
</code></pre>

<p>The controller would do this:</p>

<pre><code> $pais_id = $this-&gt;input-&gt;get_post('country', TRUE); # but I am not getting anything
</code></pre>

<p>but it gets an empty object</p>
