SyntaxFix
Write A Post
Hire A Developer
Questions
var input_val=document.getElementById('my_variable');for (i=0; i<input_val.length; i++) { xx = input_val[i];`` if (xx.name == "ans") { new = xx.value; alert(new); }}