hello
i am beginner in odoo
i have three div have same class i want use this to call fun to one div only
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hello
i am beginner in odoo
i have three div have same class i want use this to call fun to one div only
thanks
Hi,
You can use ":eq(index)"
https://api.jquery.com/eq-selector/
https://api.jquery.com/nth-child-selector/
Hi, alice
You can try below code:
$(this).on('click', ".classname", function () {});
Make sure it will helpful.
Thank you.
"i want to use this call fun to one div only" - yours does all.
$(this).on('click', ".classname:eq(<div index>)", function () {});
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up