Rounded corners on DP

Hoping someone can help.
I have few DPs that need dynamic resizing rounded corners.
I have this great little javascript: javascript:$(’[data-label=“DP_name”] .panel_state’).css(‘border-radius’, ‘3px’);void(0);

Problem is, how to I add more than one data-label? Or how to do this on multiple DPs.


You can target multiple divs but you’ll get a NodeList instead of a single node, so you need to iterate over each on and apply the change.

See if this works for you:

$('[data-label="label1"], [data-label="label2"]').each(function(i, e){$(e).css('border-radius','3px')});void(0);