<div id="PartialContent"></div>
$(document).ready(function () { $(".mainnav a").click(function (e) { e.preventDefault(); var url = $(this).attr('href'); if (url != '#') { $('#PartialContent').empty(); //not working $('#PartialContent').html(''); //not working $('div#PartialContent').children().remove(); //not working $.get(url, function (response) { $('#PartialContent').html(response); }); } }); });
$( "#PartialContent" ).hide();
$( "#PartialContent" ).show();
$('#PartialContent').empty(); or $('#PartialContent').html('');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)