# Best way to obtain the value from connected record?

**URL:** https://forums.knack.com/t/best-way-to-obtain-the-value-from-connected-record/7867
**Category:** API & Custom Code
**Created:** [July 20, 2015, 1:24pm UTC](https://forums.knack.com/t/best-way-to-obtain-the-value-from-connected-record/7867 "2015-07-20T13:24:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BartvanBeu70192](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@BartvanBeu70192](https://forums.knack.com/u/BartvanBeu70192)
#### Post date: [July 20, 2015, 1:24pm UTC](https://forums.knack.com/t/best-way-to-obtain-the-value-from-connected-record/7867/1 "2015-07-20T13:24:42Z")

</div>

Hi, I'm trying to get the value from a connected record. In this case the user can select 1 value from a pull-down list from connected records. The below works well on desktops but not on Chrome on Android - I have to set the "request Desktop Site" button to make it work:

```
$(document).on('knack-view-render.view_202', function (event, view, data) {
$("#view_202 .kn-submit input[type=submit]").on("click", function() {  
var m=$("#view_202_field_207_chzn > a:nth-child(1)").text();
```

Here ([http://helpdesk.knackhq.com/support/discussions/topics/5000035927](http://helpdesk.knackhq.com/support/discussions/topics/5000035927)) it is suggested to use

```
$(".field_17 .kn-value").text()
```

to obtain the connected record value, but that doesn’t work.

What is the best way to get the selected value of a connected record ?

Cheers
