I just want to find the element with a particular value for a custom attribute.
E.g. I want to find a the div which has the attribute data-divNumber=\
div
data-divNumber=\
var number = 6; var myDiv = $('div[data-divNumber="' + number + '"]');