I am designing a webpage and I am using jQuery.
The webpage makes use of AJAX. IE6 and lower versions do not show the page correctly. Even the AJAX code doesn't seem to work.
Code:
jQuery(document).ready(function($) {
// hide all sub heading lists
$("#content1").load("sub/image1.html");
$("li[@id^='cont']").click(function(){
var current_id=$(this).attr('id');
switch(current_id){
case 'content_1':$("#content1").load("sub/my.html");break;
default:;
}
});
});
The code works perfectly in IE7, IE8, Chrome and Firefox. In IE6 or below it does not work.
What am I doing wrong?