Question: I am trying to get div value using jquery in chrome console from this:

```
<div class="col-md-3">
  <div class="vou-col" style="cursor: pointer">
    <h4>Free Large Bucket</h4>
    <span class="sku-info">Voucher123</span>
  </div>
</div>

```

I am getting the following error:

**$('.sku-info').val()**

VM783:1 

> 
> Uncaught TypeError: $(...).val is not a function
>  at :1:21
> 
> 
>

Answer: 
```
$(".sku-info").attr('value')

```

should do the trick since this control is not an input
include jquery

```js
var spanval = $('.sku-info').html();
alert(spanval);
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="col-md-3">
   <div class="vou-col" style="cursor: pointer">
       <h4>Free Large Bucket</h4>
        <span class="sku-info">Voucher123</span>
     </div>
 </div>
```