How to target element with inline-style font-size defined in pixels (ex: font-size:12px) in order to modify font-size on a button click.
Can someone help finish this jav
You may try indexOf on style attribute:
indexOf
$('.parent').each(function (index, value) { if (/font-size:[^;]+px/.test($(this).attr('style'))) { alert(index + ": " + $(this).attr('style')); } });
Here is Demo Fiddle