---
title: "Get value of child div using jquery"  
description: "Get value of child div using jquery"  
author: "Sunil Singh"  
published: 2017-07-18  
updated: 2017-07-19  
canonical: https://www.mindstick.com/forum/34323/get-value-of-child-div-using-jquery  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# Get value of child div using jquery

\
I want to [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) the [content](https://www.mindstick.com/articles/13019/get-the-best-content-marketing-pricing-packages-for-your-brand) of div id [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) ..please help<div id='[container](https://www.mindstick.com/forum/159610/how-to-connect-a-windows-container-to-a-service-running-on-localhost)'> <div id='first'>first [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions)</div> <div id='second'>Secod text</div> <div id='[third](https://yourviews.mindstick.com/story/4957/the-significance-of-the-third-eye-in-hinduism-more-than-just-a-symbol)'>Third [test](https://yourviews.mindstick.com/story/1427/explosive-facts-about-trinity-test-world-s-first-nuclear-bomb)</div></div>thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)

## Replies

### Reply by Sushant Mishra

//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/34323/get-value-of-child-div-using-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
