I need how to achieve this Jquery Checkbox

Posted by Jayakumars under jQuery on 5/21/2011 | Points: 10 | Views : 1183 | Status : [Member] [MVP] | Replies : 5
hi
every one

I have 8 checkbox now i need when i select one checkbox i need remaining 7
checkbox disabled when i unchecked i need enaled all how to achieve this
using JQuery i need most urgent.

Mark as Answer if its helpful to you


Responses

Posted by: Tijut2k on: 5/23/2011 [Member] Starter | Points: 25

Up
0
Down
You pls choose radio button for these kind of situation...



Best Regard's
Tiju Thankachan

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 5/23/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,
Refer this link

http://www.dotnetfunda.com/codes/code1619-disabling-the-other-checkboxes-while-seleting-one-checkbox-and-enabling-all-.aspx

Hope this gives you the correct solution...

Thanks,

Nitha Deepak

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 5/24/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
deepak

thanks your reply

where is below code
<script type="text/javascript" src="JScript.js"></script>
<script type="text/javascript" src="JScript2.js"></script>


Mark as Answer if its helpful to you

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 5/24/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi Jayakumar,
JScript.js is the script file where i copied the downloaded jquery plugin. You can download the jquery plugins from www.jquery.com .
Otherwise you can give direct reference as shown below.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

JScript2.js is the script file where i write jquery functions for the checkboxlist.

Thanks,


Nitha Deepak

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 5/24/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi Jayakumar,

One thing to be noted while using jquery is
First you have to give reference to the main jquery plugin. After that you can give reference to other jquery plugins like validation plugins,zoomer plugins etc(if you want that. In your case no need.) .Then write the reference to the .js file(in this case JScript2.js) in your application.

Thanks,

Nitha Deepak

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response