Forget about dynamic elements. Use this code block
$(".floors_for_3bhk").click(function () {
alert($(this).find('span').html());
});
This will give you the span's content of clicked div(with class floors_for_3bhk). Now,all you need to do is apply this class to all the elements getting generated dynamically.
Regards..