Solved

how to avoid ticking the hidden checkboxes

Posted on 2008-06-17
4
234 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 100 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 400 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Automatically log-in a new user through code 1 59
Forcing form refresh - classic ASP 7 66
Summernote required 3 141
Diminish Pop-up  in 3 seconds 7 18
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 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