JSFiddle - React, Tailwind, and code Playground
by Mark Coleman
HTML
<input type="text" name="first" expression="firstExpression"/>
<input type="text" name="last" expression="secondExpression"/>
<input type="text" name="age" expression="thirdExpression"/>
JavaScript
function showValues() {
var inputs = $(":input[expression]");
inputs.attr("expression", function(index, expression){
alert("Index: " + index + " Expression: " + expression);
});
}
showValues();