JSFiddle - React, Tailwind, and code Playground
by rwaldron
HTML
<input type="text" value="a"><input type="text" value="b"><input type="text" value="c"><input type="text" value="d">
JavaScript
jQuery.fn.textAll = function() {
return [].slice.call(this).map(function( node ) {
return node.value;
});
};
console.log(
$("[type='text']").textAll()
);