Reputation: 907
This code perfect work with asp.net c#. I am using this code but not working with mfc htmldialog. Error is Object does't support property or method tabs.
<HEAD>
<title></title>
<link href="jquery-ui-1.8.8/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
<script src="jquery-ui-1.8.8/jquery-1.4.4.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="jquery-ui-1.8.8/ui/jquery.ui.widget.js" type="text/javascript"></script>
<script src="jquery-ui-1.8.8/ui/jquery.ui.core.js" type="text/javascript"></script>
<script src="jquery-ui-1.8.8/ui/jquery.ui.tabs.js" type="text/javascript"></script>
<link href="jquery-ui-1.8.8/demos/demos.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
(function ($) {
// rely on $ within safety of "bodyguard" function
$(document).ready(function () {
$("#tabs").tabs();
});
})(jQuery);
</script>
</HEAD>
Help?
Upvotes: 2
Views: 259
Reputation: 132
First, please remove '$' before alert. If still doesnot work, try to using <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
. If it work, it means you cannot import library.
Upvotes: 1