set jquery identifier from popup window to parent window

Posted on 2013-06-26
Last Modified: 2013-06-28
I have a popup window from my page and after the user finishes what they did, the popup window closes.
is there anything I can script in javascript or jquery on the popup box to make something happen to a selector on the parent window?
Question by:rivkamak
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 19

Expert Comment

by:Albert Van Halen
ID: 39280601
refer to jquery object in the parent window via

Open in new window

LVL 75

Expert Comment

by:Michel Plungjan
ID: 39280603
same origin?

$("#someDiv", window.opener.document).html("some html");

Author Comment

ID: 39282132
Let's say I don't use jquery.

window.opener.form1["cancelreason" + dsrow].value="test";
window.opener.form1["status" + dsrow].style.visibility = "hidden";

the first line works,  the second one doesn't
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

LVL 75

Expert Comment

by:Michel Plungjan
ID: 39282408

window.opener.form1["cancelreason" + dsrow].style.visibility = "hidden";

Author Comment

ID: 39285307
visibility works.
how can I change the background-color?
does it make a difference that I am working off a select box?
LVL 75

Accepted Solution

Michel Plungjan earned 500 total points
ID: 39285832

no that should not make a difference

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question ( on how to make a page show some balloons animate up a page…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question