1//for imput field given in HTML
2
3<input type="text" id="myid" class="myclass" >
4
5// Using ID to find value
6
7$("#myid").val();
8
9// Using Class to find value
10
11$(".myclass").val();
12
1--- DIV ---
2<div class="none product-id"> 4 </div>
3=> $('.product-id').text().trim();
4
5--- INPUT ---
6<input type="text" class="form-control product-number" value="1">
7=> $('.product-number').val();
8