I am trying to get back an array selecting the class value but I only get the last value.
So this:
<input class="test" value="Example 1" />
<input class="test" value="Example 2" />
console.log($(".test").val());
Returns me this
Example 1
How can I get all values of the class? I want to save it in a variable so I can send it with AJAX.