Jquery, get elements with element name starts with a giving string

早过忘川 提交于 2021-02-05 11:14:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!