xxxxxxxxxx
--- 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();
xxxxxxxxxx
//for imput field given in HTML
<input type="text" id="myid" class="myclass" >
// Using ID to find value
$("#myid").val();
// Using Class to find value
$(".myclass").val();
xxxxxxxxxx
// Assuming the user wants to get the value of an input field with the id "myInput"
var value = $('#myInput').val();
console.log(value);