I have a custom attribute called data-role and I\'d like to find all elements where data-role=\"content\" in jQuery.
use attribute equals selector
attribute equals selector
$("div[data-role='content']")
u can find more info here