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 access using `document.getElementsByClassName()`, But the thing is you will get an array object. Using the array you have to find out yours. In the below sample I have assumed only one class available.

```
 var arr = document.getElementsByClassName("question-size-v4");

 alert(arr[0].innerHTML);

```

[**DEMO**](http://jsfiddle.net/0Lp9vzct/)