If you want only to show/hide, without change anything in the div's DOM
and you know all the IDs, I think, that the best (fastest) way to archive
this would be to prepare
<style /> element and append it
to DOM. Style el should contain all the ID's and proper display. Iterate
through IDs and add it to CSS string, then create
/> element and append string to it. This should work for you.