My application generates some inline styles. In certain point I need to remove the height, the width and the max-width styles.
I've located the element like this:
const elems = window.$('.myElements');
window.$.each(elems, (index, value) => {
if (value.id.startsWith('myPanel')) {
here I've tried this:
window.$(value).css({height: '', maxWidth: '', width: ''});
and this:
window.$(value)[0].style.height = '';
window.$(value)[0].style.width = '';
window.$(value)[0].style.maxWidth = '';
also this:
window.$(value).css('height', '');
window.$(value).css('max-width', '');
window.$(value).css('width', '');
}
});
and no matter what it always remove only the first element. What am I missing here?
elems.each(function(){...});