Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3057 Zobrazení

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. 

 

Avatar
Zrušit
Nejlepší odpověď

Hi,

To get the child element of the selector you can try 

this.$el.find('child_selector')

Example: 

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

Regards

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 23
6017
0
čvc 21
4159
0
čvn 21
4314
0
kvě 23
3232
1
led 23
8029