javascript - Finding a div with certain link inside -


if i'm given class of div $('.my_class') , div contains link a url i'm given, how find div?

here's how it:

$('div.my_class a[href="link"]').closest('div.my_class'); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -