This is working nicely:

```
var saf = document.getElementById("div1").innerHTML

```

But is it fine?

This is not working:

```
var saf = document.getElementById(this).innerHTML

```

How to do that? This is the part of the code. Please help.

```
$('#group').click(function() {
    $(this).css('background-color', 'blue');
    $(this).css('border-color', 'blue');
    var MyDiv1 = document.getElementById(this);

    $('#logout').text(MyDiv1.innerHTML);

```