I made it a little easier, but it still is not working. Instead of mounting everything in the javascript, in my action I mount all html and in javascript I only pass the html mounted to my select.
function MostraPrograma(){
var _valorSelect = document.getElementById("CursoEscolaId").value;
$.post('/novas/mostra_programa/'+_valorSelect),$("#CursoNewAddForm").serialize(), function(data){
$("#rowIdChata").html(data);
}
}
and this is my view:
<?php
if($info_campus == 0){
echo 'Não existem tipos de curso para esta escola';
}else{
foreach($info_campus as $info){?>
<option value="<?=$info['CursoCampus']['id']?>"><?=$info['CursoCampus']['nome']?></option><? php }} ?>