Odoo Help

Welcome!

This community 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.

0

getting problem in web module JS file

By
chinmoy maity
on 8/28/13, 9:16 AM 900 views

In my template there is coding like this --

<div title="" class="display_no oe_topbar_item">
<button class="display_count"></button>
<div class="dropdown_list">
<table>
</table>
</div>
</div>


--for this above code , i'm able to access "button" from my JS file and able to add a click event with that .
Now I'm adding --
<tr></td></a>Some link</a></td></tr>
at runtime from JS with table .
Now , how can i add on click event with the "a" tag ??

-- help please , thanks in advance ,

0
Sarath Chandran.C
On 8/31/13, 7:42 AM

Have you tried like this ??---

this.$('.dropdown_list a').on('click', function(){ //your code here .. });

Hi sarath ,

I've tried this , but nothing responding on click ... :-(

chinmoy maity
on 8/31/13, 7:44 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/28/13, 9:16 AM
Seen: 900 times
Last updated: 3/16/15, 8:10 AM