InnerHtml using class
<p>i am working on a website using PHP and JQuery. I am retrieving the data that i want on the click event but when i get the response from the database the innerHtml is not working.Any help is appreciated</p>

<pre><code>$(document).ready(check_messages);

function check_messages() {
    $('.mes_det').click(get_message);
}

function get_message() {

    var name = $(this).find(".name").html();
    var time = $(this).find(".time").html();
    $.get('find_message_text.php?name=' + name + "&amp;time=" + time + "&amp;send=0", function (data) {
        $(this).find(".message_Text").html(data)
    });
}
</code></pre>
