Solved

how to avoid ticking the hidden checkboxes

Posted on 2008-06-17
4
238 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
[X]
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
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

636 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