val() method returns or sets the value attribute code example Example: jquery get value of element // Get the value from id thisElement $("#thisElement"). val();