Question: I can not access this data within the div with javascript. 

```
<div class="questions-text-alignment whiteTextWithShadow question-size-v4">
  DATA HERE
</div>

```

Any suggestions?

Answer: 
Way 1
-----

You can access the data using jQuery in the following way:

```
<script>
$(document).ready(function(){
    var data = $(".questions-text-alignment").html();
    alert(data);
})
</script>

```

Way 2
-----

Without jQuery:

```
<script>
    var data = document.getElementsByClassName("questions-text-alignment");
    alert(data[0].innerHTML);
</script>

```
You can try like this 

```js
<script>
    function getHtml() {
        var html = document.getElementsByClassName("questions-text-alignment")[0];
        alert(html.innerHTML);
    }

</script>
```

```html
<div class="questions-text-alignment whiteTextWithShadow question-size-v4">
    DATA HERE
</div>
<input type="button" name="click" value="click" onclick="getHtml()" />
```