私は、次の要素を持つHTMLページを持っている:私はこのように、jQueryの機能と属性で、この要素を選択したいThymeleaf属性を持つ要素の選択方法は?
<input type="text" th:field="*{recipientName}"/>
を:
$("[th:field='*{recipientName}']")
しかし、私はこのエラーを取得:
Uncaught Error: Syntax error, unrecognized expression: [th:field='*{recipientName}']
この要素を選択するにはどうしたらよいですか?
私の答えの最後に更新を見てください:) – delinear