So basically I have jquery code on a page where:
- Open a new popup window
- Display rails view page
- Manipulate items on a newly opened page
Don't know what sort of solutions are there, however I thought it should be really easy.
That's the code:
// open a popup window for example /fault_books/3
popup = window.open("/fault_books/" + <%= @fault_book.id %> , "popup");
// trying to get the scope of the element
var module = $(".module-logo", popup.document.body)
// manipulating the element
$(module).hide();