Okay, here we go...
I have a page XYZ with a button that's supposed to call my function:
$(function() {
$('#addgroupicon').on('click', function(event){
addgroup();
});
});
function addgroup()
{
$('#addgroupdialog').show();
}
// #addgroupdialog and #addgroupicon are within the loaded page, the above code is inside a .js file that I load in the header of the index.html
now I'm loading this page XYZ into a div with the .load() function, but when i click the button nothing happens. I also tried to add onclick='javascript:addgroup();' to the button, with no success.
can anyone help me?