Código:
Pero quiero agregarle que si se da otra combinacion muestre otro archivo, es por esto que probe lo siguiente.function check_form_ficha(rubro,nivel){
if(document.getElementById(rubro).value==1&&document.getElementById(nivel).value>=2){
document.getElementById("form_ficha").style.display="block";
if(document.getElementById("form_ficha").innerHTML==""){
ajaxload("form_ficha","ajax/ficha_camping.php");
}else{
}
}else{
document.getElementById("form_ficha").style.display="none";
}
}
Código:
Pero no me funciono.function check_form_ficha(rubro,nivel){
if(document.getElementById(rubro).value==1&&document.getElementById(nivel).value>=2){
document.getElementById("form_ficha").style.display="block";
if(document.getElementById("form_ficha").innerHTML==""){
ajaxload("form_ficha","ajax/ficha_camping.php");
}else{
}
if(document.getElementById(rubro).value>=1&&document.getElementById(nivel).value==3){
document.getElementById("form_ficha").style.display="block";
if(document.getElementById("form_ficha").innerHTML==""){
ajaxload("form_ficha","plantillas/usuarios_registro_establecimiento_beneficios_form.html");
}else{
}
}
}else{
document.getElementById("form_ficha").style.display="none";
}
}
Alguna ayuda.
Muchas gracias

