Odoo Help

1

What does this.$el.find method does?

By
Maniganda
on 7/3/13, 12:34 PM 1,484 views

I Need to create a new web module for my requirement and i came across this line (this.$el.find) in web module. what Exactly this does

0
walid mashal
On 1/27/18, 1:59 AM

@Maniganda and for anyone who has this issue in future (as I know it's late for you now)

this.$el.find() is a method that is used to parse through the html of the current widget and find elements inside it based on their html class, id or element name, remember the scope of the search is local to only that widget, not to the entire document.

You can use it as following:

this.$el.find('#id_of_element')
this.$el.find('.class_of_element')
this.$el.find('name_of_element')

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 7/3/13, 12:34 PM
Seen: 1484 times
Last updated: 1/27/18, 1:59 AM