これはかなり基本的なことですが、私は JavaScript が苦手です。
私は次のページに取り組んでいます: http://mockingbirdagency.com/thebox/bettercss/login-1.html
以下の関数で。
<script type="text/javascript">
$(document).ready(function() {
$('#button-sign-up').click(function() {
$(this).css("margin-top","10px");
$('#details').toggle(500);
$('#container-bloc-center').css("height", "290px")
});
});
</script>
ボタンをもう一度クリックすると、元の位置に戻りたいのですが、どうすればよいですか?!