I have this function which run when loading the page
function sssssss(page){
loading_show();
$.ajax
({
type: "GET",
url: "load_data.php",
data: "page="+page,
success: function(msg)
{
$("#container").ajaxComplete(function(event, request, settings)
{
loading_hide();
$("#container").html(msg);
});
}
});
}
I need to call this function also onClick let's say when clicking button id="go" I have tried by adding
$('#go').live('click',function sssssss(page){... }
it gives me an error.
How to call this function on Click?
.live()was removed in 1.9, superceded by.on().