Hi I have three dropdown, the first one is filled in my controller, the second one needs to be populated in ajax with params from the first one and the third needs the second.
When my form valid all the fields It prints the following error in both dropdown
The input was not found in the haystack

This is my ajax call

```
  $("#department_id").change(function(){
    $.ajax({
        type: "POST",
        url: "<?php echo $this->url('zfcadmin/getprovinces'); ?>",
        data: "dept="+$(this).val(),
        success: function(msg){ 
            $("#province_id").html(msg);
    }
 });
});

```

This is my Controller what am I doing wrong any help?

```
public function getProvincesByIDAction()
{
    $request = $this->getRequest();
    $response = $this->getResponse();
    if ($request->isPost()) {
        $response->setStatusCode(200);
        $codDpto=$request->getPost('dept');
        $data=$this->getTable()->getProvinces($codDpto);
        $buffer="<option value=''>Seleccione una Provincia</option>";
        foreach ($data as $prov) {
            $buffer.=<<<EOT
             <option value='{$prov->codProv}'>{$prov->name}</option>
          EOT;
        }
           $response->setContent($buffer);
        $headers = $response->getHeaders();
    }
    return $response;
}

```

Any help?

Thanks