JQuery Show-Hide DIV based on Checkbox Value?

That is because you are only checking the current checkbox.

That is because you are only checking the current checkbox. Change it to function checkUncheck() { $('. PChk').

Click(function() { if ( $('. PChk:checked'). Length > 0) { $("#ProjectListButton").show(); } else { $("#ProjectListButton").hide(); } }); } to check if any of the checkboxes is checked (lots of checks in this line..).

Reference: api.jquery.com/checked-selector.

Thank you very much! Works like a charm! Some people just get it while others like me struggle!

– mickormick Dec 14 '10 at 22:24.

You might consider using the :checked selector, provided by jQuery. Something like this: $('. PChk').

Click(function() { if( $('. PChk:checked'). Length > 0 ) { $("#ProjectListButton").show(); } else { $("#ProjectListButton").hide(); } }).

Using this method myself. – mirzu Jan 27 at 20:41.

What you may need to do is check to see if at least one check box is checked to show the submit button. If not, then hide the submit button.

1 Yes; while this is correct, it might be beneficial to show how this might be done. – David Thomas Dec 14 '10 at 21:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions