I understand using $('input[name="_"']).val('');will replace an input field by name.
I want to use a loop to cycle through a range of names. $('input[name="'variable_name'"']).val(''); results in an error saying the line is missing a closing bracket ')'.
Is there a way to do this?
+for string concatenation$('input[name="' + variable_name + '"']).val('');