ページ全体に次のような複数のクラスがあります。
<input class="someclass1 condition[operator]" type="text">
<input class="someclass2 condition[value]" type="text">
<input class="condition[percentage]" type="text">
jquery を使用して基本的にループスルーしたいのfind("some_selector_i_need").each()
ですが、ワイルドカードを使用してこれを行う方法がわかりません。
これは可能ですか?find("condition[*]").each()
私も何を引き出すことができる場所のようなもの*
ですか?
最終的には、次のように配列をフォーマットしたいと思います。
Array
(
operator => 'value1',
value => 'value2',
percentage => 'value3'
)