Quantcast
Channel: jQuery .click() event for multiple div's - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Kelly Cook for jQuery .click() event for multiple div's

you could get the title using $(this).attr("title").val()

View Article



Answer by karim79 for jQuery .click() event for multiple div's

Additionally, this is the perfect opportunity to make use of event delegation. With this technique, you do not have to worry about re-binding click handlers after programmatic insertion of new DOM...

View Article

Answer by jfriend00 for jQuery .click() event for multiple div's

You can't have the same ID on multiple tags. You will have to fix that. You can use the same class, but there can only be one object in the page with a given ID value.this.id will fetch the id value of...

View Article

jQuery .click() event for multiple div's

I have some search results that I'm outputting that are of this form:<div id="result" title="nCgQDjiotG0"><img src="http://i.ytimg.com/vi/nCgQDjiotG0/default.jpg"></div>There is one...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>