Odoo Aide

0

0
4 Answers
1
Nikunj
21/05/2019 05:18

Hi,

You can use ":eq(index)"

https://api.jquery.com/eq-selector/

https://api.jquery.com/nth-child-selector/



0
Dhaval Desai
21/05/2019 02:57

Hi, alice

You can try below code:

    $(this).on('click', ".classname", function () {});

Make sure it will helpful.

Thank you.

2 Comments
Yenthe Van Ginneken
21/05/2019 04:22

"i want to use this call fun to one div only" - yours does all.

Dhaval Desai
21/05/2019 05:17

$(this).on('click', ".classname:eq(<div index>)", function () {});

Poser une question
Writer
Keep Informed
1 Abonné(e)s
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