---
title: "Get value of div content using jquery"  
description: "Get value of div content using jquery"  
author: "Manish Kumar"  
published: 2017-12-10  
updated: 2017-12-10  
canonical: https://www.mindstick.com/forum/34388/get-value-of-div-content-using-jquery  
category: "jquery"  
tags: ["jquery", "html", "bootstrap"]  
reading_time: 1 minute  

---

# Get value of div content using jquery

I want to get the [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) of div this is my [html](https://www.mindstick.com/articles/1530/design-a-simple-stylish-calculator-using-html-css-and-javascript) [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)

how can i do this using jquery

```
 <div class="form-control" id="user">
        product
 </div>
```

thanks in advance..

\

## Replies

### Reply by Sunil Singh

Use .text() to extract the content of the div

```
var text = $('#user').text()
```

hope it helps you..


---

Original Source: https://www.mindstick.com/forum/34388/get-value-of-div-content-using-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
