[jQuery] called ajaxComplete only on specific div
Hi,
This is my simplified html code:
<div id="calendar">
<div id="#test">
</div>
</div>
and (simplified) JS:
function getCalendar() {
$('#calendar').bind('ajaxComplete', function() {
getTest();
});
}
and function getTest() uses ajax but insert data into div#test.
I suppose the problem with duplicating ajaxComplete calls (with each
another called getCalendar, getTest() is called one more time) is that
"$('#calendar').bind('ajaxComplete') is called even when function
getTest() is called. That's right? So how to bind ajaxComplete only to
specific div?
Thanks for help.
--
dreame4