In a php file i have used include
to include the following js.php file
and prior to that i have included the jquery file.
<script type="text/javascript">
$(document).ready(function(){
alert("hello");
});
</script>
But it doesn't work. Why? when I skip the $(document).ready function it works.
But i need jquery code inside. what is wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…