I am iterating loop over Div and in that div assigning encoded array as value to hidden field and want to get value of that hidden field in each loop but getting undefiened

```js
var port_ofAir = null; $(".sublocation_div").find('.sublocation').each(function(index,value1){
    port_ofAir = $(this).find(".port_arr").value;

  });
  console.log(port_ofAir)
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="hidden" name="arr_port" class="port_arr" id="arr-port" value="[{"id":34,"client_id":"2"}]">
```

I want to get that array in jquery function

please any suggestion