问题
How using jquery get all input text elements whith a name starts with 'productElement'
回答1:
You an use attribute starts with selector [name^="value"]
:
Selects elements that have the specified attribute with a value beginning exactly with a given string.
$('input[name^="productElement"]')
来源:https://stackoverflow.com/questions/22604124/jquery-get-elements-with-element-name-starts-with-a-giving-string