﻿$(document).ready(function() {
    $('.answer').css('display', 'none');
    $('.question').each(function(e) {
        $(this).bind('click', toggleQuestion);
    });
});

function toggleQuestion(event){
    var answer = $('.' + event.target.id);
    answer.css('display', answer.css('display') == 'none' ? 'block' : 'none');
}