我这里有问题。成功将数据保存到mysql后,我尝试使用DIV显示信息框。
这是我的短代码。
// Mysql插入过程
if($result){?>
<script type="text/javascript">
$(function() {
$.ajax({
$('#info').fadeIn(1000).delay(5000).fadeOut(1000)
$('#infomsg').html('Success.')
});
}
</script>
<?php }
DIV怎么会出现?我试过了,但什么也没出现。有什么帮助吗?谢谢