I develop following code to slide up register panel, then change its content and then slide down logged in panel.
function ValidLogin(data)
{
var content = null;;
content = '<a id="link-show" class="g-button g-button-red" href="<?php echo base_url(); ?>index.php/cv/show/';
content += data.id;
content += '"> www.onlinecv.ir/index.php/cv/show/'
content += data.id;
content += ' </a> ';
content += 'رزومه ام را نشانم بده';
content += ' <a id="link-signout" class="g-button g-button-red" href="#';
content += '"> خروج '
content += '</a>';
content += '</span>'
$("#signup-button").slideUp(1500).delay(1500);
$("#signup-button").html(content).slideDown(1500);
}
but it changed content ,then slide it up and slide it down. what should I do to changing content after sliding up?