i've got an array like following
[jQuery('div#example1'), jQuery('div#example2'), jQuery('div#example3'), jQuery('div#etcetera')]
Goal
elementArray = [jQuery('div#example1'), jQuery('div#example2'), jQuery('div#example3'), jQuery('div#etcetera')];
$(elementArray).remove();
//or
$(elementArray).css('border', '1px solid red');
I want them all to get the same treatment, with some function. The only way i know to access the elements is to loop trough the array.
Can someone help me out with a more efficient way to go about this?
jQuery(div#wallItem303.wallItem✉)should bejQuery('div#wallItem303.wallItem✉')- you're missing quotes.