Pergunta
aqui está o código:
<script>
$(document).ready(function(){
$.get("realisations.shtml",function(data){$('#realisations').empty().append(data)});
});
</script>
Eu preciso executar $ hide () ( "toexpand.."); após beeing que os dados são carregados para o div
este trabalho tentativa não faça:
<script>
$(document).ready(function(){
$.get("realisations.shtml",function(data){$('#realisations').empty().append(data)},function(){$(".toexpand").hide()});
});
</script>
Solução
$(document).ready(function(){
$.get("realisations.shtml",function(data) {
$('#realisations').empty().append(data);
$(".toexpand").hide();
})
});
Outras dicas
<script>
$(document).ready(function(){
$.get("realisations.shtml",function(data) {
$('#realisations').empty().append(data);
$(".toexpand").hide();
});
});
</script>
Existe uma razão que você não está usando $ load (). ()?
$(document).ready(function(){
$('#realisations').load("realisations.shtml", function() {
$(".toexpand").hide();
});
});
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow