Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get value of div jquery

--- DIV ---
<div class="none product-id"> 4 </div>
=> $('.product-id').text().trim();

--- INPUT ---
<input type="text" class="form-control product-number" value="1">
=> $('.product-number').val();
 
PREVIOUS NEXT
Tagged: #div #jquery
ADD COMMENT
Topic
Name
5+3 =