---
title: "jQuery get value within child div"  
description: "jQuery get value within child div"  
author: "Anonymous User"  
published: 2018-03-25  
updated: 2018-03-25  
canonical: https://www.mindstick.com/forum/34448/jquery-get-value-within-child-div  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# jQuery get value within child div

I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) of div whose id is [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society)

```
<div id='container'>
    <div id='first'>HI</div>
    <div id='second'>Mindstick</div>
    <div id='third'>Software</div>
</div>
```

\

## Replies

### Reply by Anonymous User

```
//To get the textual contents of a container, you need to use text() (or html(),
var text_val = $('#second').text();  or
    var text_val = $('#container').children('#second').text();
```

hope this will helps you..


---

Original Source: https://www.mindstick.com/forum/34448/jquery-get-value-within-child-div

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
