I am working with an iframe and inside this I am opening a modal, but it happens that when you open it, the modal is completely blocked, it has the effect of becoming gray just like a modal does, but all the content inside the modal is gray. iframe, including the modal, I've been trying to do a window.parent.$("#Modal").modal()
but it does not work, it also opens the modal within the iframe. Help!
This is the code I have so far:
<iframe id="formularioTr" name="formularioTr" height="470px" width="100%" style="border:hidden;">$divpropiedades .= <input id="'.$nombremetadato["idDocumentoPropiedad"].'" '.$eventoblur.' name="'.$nombremetadato["idDocumentoPropiedad"].'" class="form-control '.$clase.'" type="text" placeholder="Seleccione '.str_replace('_', ' ', $nombremetadato["tituloDocumentoPropiedad"]).'" onblur="abrirModal('.$idLista.',this.value);"> $divpropiedades .= <div id="myModal" class="modal fade" role="dialog">
<!-- Modal content-->
<div style="" class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Selección de Dependencias</h4>
</div>
<div class="modal-body">
ACÁ VIENE EL CONTENIDO DEL MODAL
</div>
</div>
The onblur executes a java script function
function abrirModal(idLista,value)
{
window.parent.$("#ListaSelect").modal()
}