The code should print the id of the selected div but it does not. I did not find the error. Thanks for help.
HTML
Try console.log($('#form_area div').attr('id'));
console.log($('#form_area div').attr('id'));