?
Solved

Send Multi-select values from parent to child window

Posted on 2014-07-17
2
Medium Priority
?
650 Views
Last Modified: 2014-07-17
Hi,

I have a parent window that have a multiselect box.  I want to send the values from the parent window to the child window. Loop thru the multiselect and store them in a list.

this is what I have so far.

this is the parent window that has the multi-select

<select name="SelectName" id="SelectName" style="width: 230px; height: 100px;" multiple="">
<option value="3453452">John, Smith</option>
<option value="6733223">Mike, Smith</option>
<option value="9534555">Lulu, Smith</option>
<option value="1443566">Nick, Smith</option>
</select>

this is the child window that wants to get the data and store it in a list.

<script language="javascript" type="text/javascript">

	$(document).ready(function () {

// I want to retrieve the data from the parent to the child window
// loop thru the multi-select and store in as a list to be used in a query.
// window.opener.$("#SelectName ???????

});

</script>

Open in new window

0
Comment
Question by:lulu50
2 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 40202354
how we open (parent) : http://jsfiddle.net/tny2A/12/
how we get (child) : http://jsfiddle.net/tny2A/1P0/
0
 

Author Closing Comment

by:lulu50
ID: 40202632
Thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…
Suggested Courses

864 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