Is there a way to launch an event after html() has been fired? Such as:
$.post(\"ajax.php\", {data :data}, function(data){ $(\"#countries\").html(data, fu
html() is a synchronous operation, not an event, and so it would not logically accept a callback.
html()
Just put your code after it:
$('container').html(data); alert('test');