I want to add round borders to selected image areas on a map, how do I do it?
You may use jQuery:
$('body').on('click', 'img', function() { $(this).addClass('with-round-corners'); });
You can use CSS
img{ border:none; } img:hover{ border:1px solid; }
img { border:0px; } img:hover { border:1px solid black; border-radius:5px; }
Use the below JQuery code on click :
$(imageAreasSelector).css({ 'border': '1px solid Red' }); $(imageAreasSelector).css({ 'border-radius': '5px' });
You may use jQuery: