I currently setting margin like below successfully:
$('div#container_join_messages').css({'margin-right': '56.5%'});
$('div#container_join_errors').css({'margin-right': '56.5%'});
$('div#container_join_now').css({'margin-right': '56.5%'});
Is there a way to combine these into one line?
Tried the following unsuccesfully:
($('div#container_join_messages'), $('div#container_join_errors'), $('div#container_join_now')).css({'margin-right': '56.5%'});
thankyou
You need to place the commas inside the selector string.
You can read the documentation about this here: http://api.jquery.com/multiple-selector/