loading aspx page in classic asp in jquery
i am trying to load a aspx in a classic asp using this code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252" %>
<html>
<script type="text/javascript">
$('#menu').load('Menuin.aspx', function () {
alert('menu inserted');
});
<开发者_运维百科/script>
<body>
<div id="menu"></div>
</body>
</html>
Can u let me know the mistake i'm doing?
Include JQuery.
You also have to wait for the DOM to load.
wrap it with
$(function() {
// your code here.
});
精彩评论