問題タブ [name-attribute]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - jQuery: "name" 属性配列を動的に生成する
私はこのようなフォームを持っています:
プラス記号は、repeatable
それ自体に最も近い全体を複製します。jQuery 関数でrepeatable
s を反復処理し、入力名を次のような配列にする必要があります。
sはいくつあっても構いませんrepeatable
。この例では、合計 3 つのレベルがあります。1、2、3、4、または任意の数です。
javascript - 要素名に基づいてクラスをターゲットにする方法
名前に基づいてクラスをターゲットにするにはどうすればよいですか。
これは私がそれを行う方法を考えたものですが、うまくいきません。