[jQuery] Event Load() ??
[jQuery] Event Load() ??
Hello,
I'm with a doubt in jquery, I am using the function load () to call
another page, but after I loaded this page, I can not use the id of
another page.
because the function $('#btnCadastrarCliente').click does not work?
[index.php]
<script>
$(document).ready(function(){
$('#btnCadastrarCliente').click(function() {
alert("ok");
});
$('#novoCliente').click(function() {
mostrarCarregando();
$('#conteudo').load("cadastroCliente.php");
});
});
</script>
<li><span class="cliente">Cliente</span>
<ul>
<li><span class="file"><a href="#"
id="novoCliente">Novo Cliente</a></span></li>
</ul>
</li>
[cadastroCliente.php]
<form name="etc" id="form">
<input type="text" name="nome" id="nome" />
<input type="button" value="Cadastrar" id="btnCadastrarCliente"/>
</form>