I'm trying to load a .html file in a other html file
ManageAccount page should load in a div with id main, when manage acount is clicked,
but it loading the whole page again in div.
Result is fethching all the html page insted of new html page
can any one suggest me please.
<script type="text/javascript">
$(document).ready(function(){
var btn;
$('button[type="button"]').click(function() {
btn = this.id;
alert(btn);
$.ajax({
url: btn.html,
type: 'GET',
//async:'false';
dataType: 'html',
success: function(result){
$("#main").html(result);
alert(result);
}
});
});
});
</script>
Manage Account Profile Application Status Query
ajaxcall you must pass in the url as a stringurl: "btn.html"btn + '.html'