jquery
でname
から選択したいです。
[]
があり、選択できず困っています。
※ id,classではなくname
から選択
HTMLコード
html
1<select multiple="multiple" id="bootstrap-duallistbox-nonselected-list_event[user_ids][]" class="form-control" name="event[user_ids][]_helper1" style="height: 102px;">
試したこと(ループの中での処理)
javascript
1$('input[name=event\[user_ids\]\[\]_helper1\] option[value="' + selected.val() + '"]').attr("disabled", "disabled");
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/14 07:16
2018/05/14 07:20
2018/05/14 07:23