I have the following Javascript function:
function Ini_Form() {
var data="";
data= '<option value="0">Seleccione...</option>';
data= data + '<option value="2">TRANSPORTES MARVISUR</option>';
$("#cmbResponsable").html(data);
$('#cmbResponsable > option[value="2"]').attr('selected','selected');
$("#cmbResponsable").change();
}
This function think PHP (Select content is dynamic) and invoke the onload event of the page, the issue is that this select (#CmbResposable) I have tied to a select (#CmbDocumentos) loading some documents according to the responsible person that I select. so I need to execute the Change event of the select (#CmbResposable). Thank you in advance for your help and attention.