Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to avoid ticking the hidden checkboxes

Posted on 2008-06-17
4
Medium Priority
?
244 Views
Last Modified: 2012-05-05
Hello Experts,
I am having 2 Flexigrid plugins on the page, when I show the second I am hiding the first.
The problem is when I click on checkAll function, every record available in both these grids are been getting posted.
Please can I not check in the attached function if they are hidden?  If so how? please help
Regards
S
function checkAll(chkd)
{
$(".chkRefNos").each(function(){
                this.checked = chkd;
            });
}

Open in new window

0
Comment
Question by:newbie27
  • 2
4 Comments
 
LVL 15

Assisted Solution

by:dosth
dosth earned 400 total points
ID: 21804236
can you check for visbility

var divs = document.getElementsByTagName('div');//get
all //divs in page
for(i=0;i<divs.length;i++){//loop through them
if(divs[i].id.match(/see\d/)){//if they are 'see' divs
divs[i].style.visibility=visi;// show/hide
}
0
 
LVL 82

Accepted Solution

by:
hielo earned 1600 total points
ID: 21807752
You need change your current implementation so that you have only ONE flexigrid table. You do not need to have two. Once you start using just one table, checkAll will apply to the ONLY existing table. No need to worry about determining if you are referencing the visible or the hidden table.
0
 
LVL 8

Author Closing Comment

by:newbie27
ID: 31467980
thanks hielo
0
 
LVL 15

Expert Comment

by:dosth
ID: 21810379
thanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month11 days, 2 hours left to enroll

886 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