Parent Child Checkbox - Only Same Name Of Child And Parents Should Be Unchecked

Oct 28, 2010

I have created parent child checkboxes. When one child is selected, then parent of that child, other child of same name and parent of that same name's child will be selected... Now I want if I unchecked any child, then only same name of child and parents should be unchecked or if I unchecked Parent Child, then same name of parent and child will be unchecked.

[Code]...

View 1 Replies


ADVERTISEMENT

Check Parent Checkbox When Child Is Checked?

Dec 18, 2009

I have the following form:

HTML Code:
<form id="topics">
<p>What do you like?</p>
<p><input type="checkbox" id="cars" name="topics" value="c" /> <label

[Code]....

View 4 Replies View Related

Check Parent Checkbox When Child Is Checked

Dec 20, 2009

I want the Games checkbox to be checked when I check one (or more) of it's child checkboxes (shooter, strategy, simulation, rpg). But the Games checkbox must always remain checked when one or more of the child checkboxes are checked.What script can be used that does this and can work together with the script that is currently used?

View 14 Replies View Related

Add Selected Checkbox Items From Child Window To Parent

Jun 11, 2010

I need to add selected items using checkbox from child window to parent inside a form element. I also would like to have delete link besides the added elements so that it can be deleted. I have the child window poping up for selection and trying to achieve, adding selection to the parent form along with the values and link besides it to delete the added elements.

View 1 Replies View Related

JQuery :: Parents Without A Particular Child?

May 26, 2009

I've been staring at code for way too long. I have a data structure like:

<ul id="mylist">
<li class="active">Stuff <a href="#" class="movethis">Move</a></li>
<li class="active">More Stuff</li>
</ul>

How do I get the li that doesn't have 'a.movethis'?

View 1 Replies View Related

JQuery :: When Clicking Link Getting Value From Parents Child

Aug 9, 2009

I have the following code
<tr>
<td><input name="test" type="hidden" value="1" /></td>
<td class="icon"><a href="#" class="delete"><img src="images/action_delete.png" /></a></td>
</tr>
And once the delete button is clicked, I need the value from the input.
$(".delete").live("click", function(){
var id = $(this).parent("tr").children("input").attr("value");
$(this).parent("tr").remove();
});
However, I cant seem to select the input's value.

View 2 Replies View Related

JQuery :: Change The Elements By Select Child Tag By Using Closet().child()?

Feb 9, 2011

<div class="userbox posts" id="pst146996">
<div class="imgholder">
<img alt="Chris Hardin" src="http://codebix.com/bp/1633.png">
<div style="margin-left: 20px;" class="commentbox">

[code]....

i want already select .postlike in $(this) now i want to select the tagh1 who is in .commentboxelements.i want to change the h1's inside text 1 to 2 so i write the code

$(this).closest('.posts').children('.commentboxelements center h1').html('1');

i try this but it's not worked anyway how i can do this.

View 1 Replies View Related

JQuery :: Syntax For First Child And Last Child In A Find Function?

Jan 5, 2012

so i wrote this slider with some help from an admin, everything works as I would like it to but I'm trying to make it a plugin so i need to tighten up a certain part of the code:

(function( $ ){
$.fn.jmSlider = function() {
// get total width of all li elements in the slider
var wrapWidth = 0;

[code]....

what i would like to do is instead of using "li:first" and "li:last", i would like to use first-child and last-child so the element doesn't need to be a li, in can be anything that is the direct child of the parent container.

View 2 Replies View Related

Getting Value From Child To Parent IFrame?

Feb 4, 2009

I have one page which have two ifrmaes, parent iframe contains no of child iframe. Now oncliking child iframe check box, I have to get that value into parent iframe, I managed to create array of parent iframe but can't get child ifrmae's control. I used like this:
document.getelementbyid("iframeparent1).document.getelementsbyname("Check1")
but it doesn't work.

View 2 Replies View Related

Parent And Child Checkboxes

Jun 1, 2005

I currently have populated checkboxes in my form. I would like to write script that by clicking on a parent checkbox it will automatically select the child checkboxes as well.

The current Script I have is only the parent with a name and populated value attached to it. I would like to attach child checkboxes for each checkbox that appears from code below.

<input type="checkbox" name="price" value="<%Response.Write Recordset("price")%>"/>

View 7 Replies View Related

Child To Parent Window Communtication

Jul 23, 2005

I was curious one day and started to explore the whole idea of a
document opening a pop up and that pop up being able to send data, that
was input by the user, back to the parent. Does anyone have expirence
with this?

View 3 Replies View Related

Open Child And Close Parent

Aug 13, 2005

How do you open a new window and closed the parent window. ie click on link and new window opens in place of original window.

Is there some way of combing window.open and window.close?

View 1 Replies View Related

Generic Parent/Child Communications

May 3, 2006

I have 40 or 50 inputs scattered among many pages that all need the
ability to open a popup which allows the user to navigate a file
directory structure, locate a specific file, and return the fully
qualified file name to the parent window input. All the 40 or 50 inputs
have unique IDs. Given any one input ID, I have everything working
perfectly: the parent form opens the popup using
window.open("FileFinder.aspx?dir=" + UserRootDirectory + "&InPutID=" +
IdCodeInOnClick);

Popup talks back to parent using window.opener.document...

Like I said, give me the input field ID and I can make everything work
every time... but it makes NO sense to write 40 or 50 functions, one
for each unique input field. I tried using

window.opener.document.forms[0].getElementByID(InPutID).value

but I keep getting an error message about something requiring an
object. Is there a way to accomplish this? Also, since I'm new to
JavaScript (and web programming generally), is there a good tool for
debugging JavaScript intended for IE?

View 5 Replies View Related

How To Control Child Rows From Parent

Nov 30, 2009

I have a table of data, grouped by Month, Year and then ProjectID:
- Month, Year
- ProjectID
- Job1
- Job2
The Month, Year row controls a collapsable row (ProjectID) and in turn, the ProjectID row controls the Job row(s). The problem I'm having is that if the Job row(s) is open, then 'close' the Month, Year row, the Job row(s) stay visible. How can I control all 'child' rows from the 'parent' Month, Year control?

PHP Code:
<?php
$previousProject = '';
$previousMonth ='';
if ($totalRows_rsInvPending > 0) {
// Show if recordset not empty
do {
if ($previousProject != $row_rsInvPending['projid']) {
if ($previousMonth != $row_rsInvPending['themonth']) {
// for every Project, show the Project ID
?> .....

View 2 Replies View Related

After Open A Child, How To Keep Parent On Focus

Oct 14, 2009

After open a child window, I would like to keep parent window on focus. I tried self.focus(), set new window in blur() as well as setting the setInterval, none of them works in either Firefox or IE. I think this question relates to the opening window in tab rather than in new window.

View 2 Replies View Related

Parent/Child Popup Window

Aug 1, 2003

I have a web page w/ a popup window.

Here isthe problems that I'm trying to solve when I want the user to close the popup window via a "Close Window" button.
fyi the popup window contains a survey.

If parent window is open & minimized
> Then I can't bring to focus on the parent again, it stays minimized.

Is there an easy way to maximize the parent again?

View 1 Replies View Related

Parent / Child Window Issue...

Aug 2, 2004

A site opens a new (popup) window using javascript (so it *is* named in JavaScript)

The new window contains a page which includes an iFrame....

So we have the following.....

Top Parent Window
|
Popup Child Window -- iFrame

Inside the iFrame we have an ASP dynamically generated page that includes links that we need to open in the top level parent window.

View 1 Replies View Related

Child And Parent Passing Values

Mar 23, 2006

I have a parent page who allows user to view an invoice for service. My page bases the date and the value for payment to <%now%> and to <%total_price%>.
However I'd like to permit for users to editing those two fields by opeing a popup window with a new form and asking for these two new inputs. Afterward off corse, this values need to populate the equivalent fields on the parent page.

My questions:
1)I'm opening the new window after a js confirm instead of href or onclick methods, so I don't know how to pass the parent variable ID to the child window..

The code:
if (confirmation) {return true;}else{popupwindow("invoice_editing.asp?ID="id"");}

Problem:
the parentID=request.querystring ("ID") don't work

2)My child window picks the new values from the form... but I don know how to pass back the new values to the parent page and then reload it..

Please, but as much specific as you can to my problems and also please put the whole code of proposed solution, since I'm totally lost.

View 3 Replies View Related

Pass A Value From Parent JS To Child Window?

Jan 10, 2010

I need to pass a value from parent JSP to child window / pop up window.

in pop up window, i have a textbox which has id as rs and name as remSeconds

from parent i need to pass the value calculated from a timer which is remainingTime. code...

View 13 Replies View Related

Refreshing Parent Window When Closing Child

Jul 23, 2005

Is it possible to refresh a parent browser window when a "child"
browser window has been closed using the [X] button in the upper right
corner of the browser?

When I refer to child window, I mean that a link within a "parent" window has opened a new browser window.

View 2 Replies View Related

Communication Between 2 Windows Without Having A Link Parent To Child

Jul 23, 2005

Is-it possible to modify a window from an another window without having a
link Parent To Child?

View 2 Replies View Related

How To Keep Child Window Open When Parent Closes?

Jul 23, 2005

I have a closed box system which opens an html page. The page closes by the
system. I have access to the html page. I added code to open a child window
from this page. However when the parent window closes, the child closes
too. Is there a way to keep the child window open? Yes keep it orphaned.

View 2 Replies View Related

Positioning A Child Window Relative To The Parent

Jul 23, 2005

I have made a remote control window which opens from its parent. On loading, the remote is positioned relative to the screen using window.moveTo(x,y).

What I would like to happen is the remote control to open docked in a
specific location relative to the parent (opener).

Fortunately, I need this to work ONLY in IE, so at least I don't have to
worry about cross-browser issues.

Does anyone know how to open a window realtive to an anchor in the parent
wiondow?

View 20 Replies View Related

Refreshing A Parent Page From A Child Popup

Feb 10, 2006

I use this code in a popup to refresh the parent browser. It works fine
as long as the user actually clicks on this link but does not work in
cases where the user closes the child popup through the Windows X
(close) button. Any way to accomodate this also?

View 3 Replies View Related

Passing Value From Parent To Child Window Created By Pop Up

Dec 5, 2006

Passing value from parent to child window created by Pop up.

View 2 Replies View Related

Call Javascript In Parent From Child (pop Up) Window

Jan 12, 2007

I have some javascript that works in Firefox 2 but not in IE 7. In the
parent page, a user clicks a link and a new window is opened so that
they can maintain some values. When the user is finished, they can
click either a save or a cancel button. If the user clicks the save
button, I want the parent page to be refreshed and then the child
window to close. I have this working perfectly in FF2 but it does not
in IE. In IE, the parent page is refreshed but when it refreshes, the
screen that comes back is the same screen as the child window. When
the child window should close, it instead is being refreshed and comes
back as a blank screen. Code:

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved