How to select with a specific style attribute?
<div style="width: 420px; text-align: left; margin-top: 10px; margin-bottom: 10px;">
I’m trying:
$("div[style='width: 420px; text-align: left; margin-top: 10px; margin-bottom: 10px;']);
but nothing gets selected.
Your example works for me, in Chrome at least, once I corrected the typo of the missing ” at the end of the line.
See this demo.