If the div '#ajax' contains content, I want to make the div '.container' clickable. Here is the basic jQuery script I have implemented:
if ('#ajax:empty') {
$('.container').css('pointer-events', 'none');
}
Initially, this script successfully disables clicking on '.container' when the page loads. However, even after loading AJAX content, '.container' remains unclickable.