Вот пример кода:
Код: Выделить всё
$("#message_link").click(function(){
if (some_conditions...){
$("#header").append("");
}
});
Подробнее здесь: https://stackoverflow.com/questions/648 ... -in-jquery
Код: Выделить всё
$("#message_link").click(function(){
if (some_conditions...){
$("#header").append("");
}
});