I want to change the div
's style which is located in the parent of a parent. I am able to access them via DOM, but how can I change its CSS
style using JQuery
?
Selection code:
window.parent.parent.parent.document.getElementsByTagName('code').
I would love to only change a div that doesn't have display:none
already set, but I really don't care if we change only one, or all of them.