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 should Use Id to select element in this scenario - 
[DEMO](https://jsfiddle.net/a7jahxw5/1/)

```
<script>
function changeData() { 
    document.getElementById('contentDiv').innerHTML= "Updated Content";
}
</script>

<body>
  <div id="contentDiv">
    Content Of My Div
  </div> </br>
  <input type = "button" onClick = "changeData()" 
   value = "change div text" />
</body>

```