checkboxes

Checkboxes display?

JCheckBox special = new JCheckBox ("\nSpecial - $17.95" + "\nMeatball, Sausage, Mushroom, Onion, Pepperoni & Pepper"); In this line of code, how do you make the checkbox make the "..." into two lines? ...

AJAX Checkboxes

I have a server driven site using php and js. One section displays all photos that our users have uploaded, and an administrator then decides which photos to keep for final presentation. Most of the site uses jquery for inplace edits, yet this task has me stumped. I want to insert a row into a MySQL database table that copies the URL ...

Create nested checkboxes in asp.net 2.0

Whats is the best method to create nested checkboxlists in ASP.net? Should I be using a datagrid? Should I be using a treeview with checkboxes enabled? I have the data I need in a datatable, and would like to loop through through it to create a checkboxlist with a nested chechboxlist for each parent checkbox. Cheers! ...

Checkboxes on Rails

What's the correct way of making checkboxes that are related to a certain question in Ruby on Rails? At the moment I have: <div class="form_row"> <label for="features[]">Features:</label> <br><%= check_box_tag 'features[]', 'scenarios' %> Scenarios <br><%= check_box_tag 'features[]', 'role_profiles' %> Role profiles <br>...

Check Boxes in Rails

Hi, I am having checkboxes in my html and pagination has also been implemented. when i select few of the check boxes in first page and go to the next page through pagination,It unselects the previous page's check box. and when i click submit it gives me values of the current page's selected check boxes only. How to retrieve all the selec...

Can checkboxes be removed from a .NET WinForms ListView at runtime?

Is it possible to remove the checkboxes from a .NET WinForms ListView control at runtime? The following code appears to have no effect when '.Checkboxes' has initially been set to 'true' and the control has rendered onto a form with checkboxes available for each list view item: // C#: testListView.BeginUpdate(); testListView.Checkbox...

Branching based on number of checkboxes checked in a SharePoint survey

I need to create a survey in SharePoint 2007. Question1 will have 7 checkboxes. I want to show Question2 only if 2 or more of those 7 checkboxes are checked. How can I do that? ...

Checkboxes will not check in IE7 using Javascript, and yet no errors

Okay I'm totally confused on this one. I have a script that receives a bunch of values from a JSON object and creates a bunch of checkboxes and either checks or unchecks a these checkboxes based on their values. This script treats me like a woman treats me... "If you don't know what's wrong, then I'm not going to tell you..." The scr...

jQuery Validation plugin minLength for checkboxes

Hello all, this is my first post here on stackoverflow and am very impressed by the site! My question is about the jQuery Validation plugin...specifically about the minLength method. I have a group of checkboxes and i want to know if at least 2 boxes were checked. http://docs.jquery.com/Plugins/Validation/Methods/minlength#length at t...

Changing jquery validation error message

Hi, I'm using jQuery and the minlength method for the validation plugin rules: { checkboxes: { required:true, minlength: 3 } } This works how i want it to, BUT the error message I'm getting is "Please enter at least 3 characters." How do I instead say, "Please check at least 3 box...

How to "check" certain checkboxes only using Jquery?

Hi I have a HTML form containing checkboxes in the form of .. <input type="checkbox" name="range[]" class="range_opts" id="range-1" value="1" /> 1 <br /> <input type="checkbox" name="range[]" class="range_opts" id="range-2" value="2" /> 2 <br /> <input type="checkbox" name="range[]" class="range_opts" id="range-3" value="3" /> 3 <br /...

Php array post values dificulties

Hello, I cant seem to understand why I cant pass any values with the following code: <div class="menu"> Por favor seleccione os conteúdos: <form name="Categorias" action="Elementos_Descritivos.php" method="post"> <?php $Categorias = array ("Nome", "Data", "Cliente", "Observacoes"); foreach( $Categorias as $key => $value){ echo "<di...

Need a better way to validate ASP.NET checkboxes using a jquery validation plugin?

Problem: I want to validate some ASP.NET-checkboxes using the jquery validation plugin (found at: http://bassistance.de/jquery-plugins/jquery-plugin-validation/) What it's all about: It's not possible to set the name attribute of ASP.NET checkboxes (or is it?). It'll automatically be set, when the control is rendered and can be retrie...

struts 2 display tag checkbox

my code is request.setAttribute( "test", (new userarray()).getUsers() ); my fieldValue="%{test.checked} is not working properly as when i click on submit the checkboxes which i select ....their values do not get set...and in the user array public class userarray extends ActionSupport{ private ArrayLi...

check values before sending to controller in rails

In this code i have checkboxes for each item that give user ability to delete multiple items at once, but if the user press the remove button without checking any item it gives an error <% form_for :product , :url => { :action => :delete_selected } do %> <table border="1px"> <tr> <th> Select </th> ...

$_POST as $key => $value using checkboxes.

I am having trouble getting a form to update the information passed from a check box. I was given this code. $one = isset($_POST['one']) ? 'on' : 'off'; This works great as long as I call each check box separately. My problem is I have approximately 200 checkboxes in total. Here is the code I am using to UPDATE with. Can anyone help ...

Get/Set Checkbox and Radio Button values using Prototype

Prototype is great, but with the 1.6.1 release, the library still doesn't allow getting/setting of grouped inputs (checkboxes and radio buttons.) I'd like a way to get an array of selected values with $F($("form").checkboxes). I'd like to be able to set those checkboxes to an array of values, on the flip side. Ideas? ...

How to uncheck Select All checkbox if any one of checkbox is unchecked in WPF, C#?

Hi, In WPF, C# application, I have 4 checkboxes, 1. select all 2. team 3. personal 4. subteam. Asusual, if choose option 1, it selects all the checkboxes and when it is unchecked it unchecks all.. this is working fine for me.. But when I click select all (all will be checked,....) and if I uncheck any of the other 3, then selectall sho...

Checkbox values and useBean tag

Hi all, I'm a jstl newbie so probably this question will sound to you funny. Anyway, I have a model with a List as property and I'd like to fill this with a list of values (chosen from a list of checkboxes). I'm using the useBean tag in the form-processing jstl page, but doing this: <jsp:useBean id='subscription' class='Subscription'>...

PHP post checkbox problem

i have a form that utilizes checkboxes. <input type="checkbox" name="check[]" value="notsure"> Not Sure, Please help me determine <br /> <input type="checkbox" name="check[]" value="keyboard"> Keyboard <br /> <input type="checkbox" name="check[]" value="touchscreen"> Touch Screen Monitors <br />...