get value of div jquery 1

get value of div jquery

//for imput field given in HTML


  
// Using ID to find value
  
$("#myid").val();

// Using Class to find value

$(".myclass").val();
 

Here is what the above code is Doing:
1. We select the element with the id of myid.
2. We use the val() function to get the value of the element.

Similar Posts