コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3069 ビュー

I've got a problem in the widget when I defined the selector so the events are only called by children from selector element.

How can I search for elements (children) in the selector (parent element)? The selector is the ID of a form. Now I want to find all elements with specific class or all input elements.

    selector: '#ec_energy_input_form',

$(this).find('.form_control') gives me only undefined. 

 

アバター
破棄
最善の回答

Hi,

To get the child element of the selector you can try 

this.$el.find('child_selector')

Example: 

this.$el.find('.form_control')

Regards

アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 23
6036
0
7月 21
4170
0
6月 21
4326
0
5月 23
3260
1
1月 23
8039