I want to get the value of div this is my html code
how can i do this using jquery
<div class="form-control" id="user">
product
</div>
thanks in advance..
I want to get the value of div this is my html code
how can i do this using jquery
<div class="form-control" id="user">
product
</div>
thanks in advance..
Other
Use .text() to extract the content of the div
var text = $('#user').text()hope it helps you..