Java script for gridview
-
I have gridview with 3 check (checkBox1,checkBox2,checkBox3). When user check checkBox3 -> checkBox1,checkBox2 should be enable ane opposite when user un-check checkBox3 ->checkBox1,checkBox2 should be disable. how can I do this?
jQuery way: Pass the checkBoxes objects to this function please, e.g.
//
function OnSelect( checkBox3, checkBox1, checkBox2 )
{
if( checkBox3.is( ':selected' ) )
{
checkBox1.attr( 'disabled', false );
checkBox2.attr( 'disabled', false );
}
else
{
checkBox1.attr( 'disabled', true);
checkBox2.attr( 'disabled', true);
}
}Happy coding, Morgs
-
I have gridview with 3 check (checkBox1,checkBox2,checkBox3). When user check checkBox3 -> checkBox1,checkBox2 should be enable ane opposite when user un-check checkBox3 ->checkBox1,checkBox2 should be disable. how can I do this?
You didn't even share the code then how can we give you solution? Refer the below article Selecting / Deselecting all the CheckBoxes Inside a GridView[^]
thatraja
My Dad had a Heart Attack on this day so don't...
Pompeyboy3 here | Nobody remains a virgin, Life screws everyone :sigh: