Not only do jQuery and AJAX get along, jQuery does AJAX, and in a much more robust manner than the Dynamic Ajax Content script. jQuery also has other ways of dealing with imported content from other scripts like Dynamic Ajax Content that are more cumbersome to setup using ordinary javascript alone.
A problem with any AJAX imported content that has scripts on it is that you are not going to get the onload or document ready events that you get when it's a standalone page. And often scripts on the imported page are not imported with it. If you use one of jQuery's AJAX functions you can specify a success function to run. It varies as to how this is best setup, but generally you would put the jQuery code you're using on the 'top' page and the document ready event for the external page becomes or becomes part of the success function of the jQuery AJAX method you're using.
There's another way for something as simple as what you're doing. On the 'top' page, add the highlighted as shown:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type='text/javascript'>
$('#firstfloor').live('click', function() {
$("#hello").toggle(this.checked);
});
$(function(){
$('#MenuList1').click(function() {
$('#BuildingsList1').show();
$('#BuildingsList2').hide();
$('#Buildings . . .
Using jQuery's live method you can assign behavior(s) to an element or elements that haven't arrived yet.
For more information on .live(), see:
http://api.jquery.com/live/
Bookmarks