I have this code to show some html from a db :
$("#menuOverlay").append('<?php include('aggiungiPaginaComp.php');?>');
It's working, the source file from the browser :
$("#menuOverlay").append('<form id="aggiungiPagina"
name="aggiungiPagina"
action="script/aggiungiPagina.php"
method="post">
<tablestyle="width:100%;">
<tr>
<td>NomePagina</td>
<td><inputsize="30"
maxlength="30"
placeholder="Inseriscinomepagina"
autofocus
required
type="text"
name="nomePagina"
id="nomePagina"></td>
</tr>
<tr>
<td>Descrizione</td>
<td><inputsize="50"
maxlength="200"
placeholder="Inseriscidescrizione"
required
type="text"
name="descrizione"
id="descrizione"></td>
</tr>
</table>
<divid="scrisciaBtnForm">
<inputclass="btnMenu"type="submit"value="invia"/>
</div>
</form>');
But the div #menuOverlay is blank.. with :
$("#menuOverlay").append('<Button> ciao </Button>');
works, why? sorry for bad english.