Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3022 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
трав. 23
5940
0
лип. 21
4113
0
черв. 21
4267
0
трав. 23
3162
1
січ. 23
7995