checkbox

checkbox state should retain state to hide/unhide text on pageload

as a follow up to this question, while the checkbox value is stored on pageload, the text is displayed on pageload, even if the checkbox is unchecked. the text should hide/display only if the user has unchecked/checked the checkbox, throughout the session or till he closes the browser. js code which stores the checkbox state: functio...

Checkbox list in columns via JQuery

How can I create a layout with a set of checkboxes evenly distributed into columns at the top of a page? I'm using jQuery and classic ASP. ...

jQtransform Checkbox Click Problem on IE

Hi All !!! There is a very strange problem with jQTransform and jQery 1.4.2. When I use the jQTransform plugin on any form my checkboxes stop working appropriately. This is the behavior: The first click on a checkbox, marks it From that point on i need to click it twice to unmark / mark it I did a some Google search before creatin...

Best practice for multiple selection web UI?

I've been looking at various ways to allow a user to select one or more choices from a list of approximately 29-30 options. I've come up with the following four types, and wonder which is preferred/most usable. See http://workingstorage.com/multiple%20selection.png ...

"else" doesn't work in javascript function

I'm very new to javascript but I'm trying to make a checkbox that will copy the billto information into the shipto boxes. I have the checkbox with an onclick event, set up like so: <input type="checkbox" name="chkSame" id="chkSame" onClick="fncCheckbox()"/> same as customer info<br/> I get an error of "Expected ';'" on the Else line ...

jquery to Show/Hide problem

I have two checkbox and I want when i click on one of them, it to be active. Also I want when I press the second checkbox to hide one input area. How can happen this? <html><head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-9"> <title>jquery to Show/Hide a Div</title> <script type="text/javascript" src="http:...

Is there any security benefit in using a stored procedure to toggle a boolean value from a checkbox

I have a boolean variable value stored in an SQL Server database. This is presented to end users as a checkbox on an ASP.NET webpage. Toggling the checkbox naturally updates the value in the database. I was about to remove the SQL query that is written in plain text in the C# code behind and replace it with a stored procedure in order t...

Win32 / WTL- My Checkbox imagelist state reverts to unchecked state

I'm creating a custom window in WTL to hold video controls for a DirectShow app. I've created a set of check boxes that I wish to behave in the "push like" manner (BS_PUSHLIKE). They appear defined in the .rc file for the dialog like so: CONTROL "",IDC_VID1,"Button",BS_AUTOCHECKBOX | BS_BITMAP | BS_PUSHLIKE | WS_GROUP | WS_T...

show/hide checkbox based on select option value

How to show/hide a checkbox based on select option value? I want to show a checkbox based on a single value in select option and want to hide it when other values are selected. I am trying for jquery solution. $('#abcselect').change(function(){$('#unknownlicense').toggle($(this).val() == 'first')}); ...

Get id of a checkbox? - jQuery

Hey, I am wondering how to get the id of a checkbox when it is checked. This is what my HTML would probably look like at first: <div class="check_filter"> <div id="filter"> <input type="checkbox" id="check1" /><label for="check1">Marketing</label> <input type="checkbox" id="check2" /><label for="check2">Automotive<...

Custom titlebar positioning

Hi, I've created a custom titlebar for my Android application. All is well except I've placed a checkbox on the titlebar and I want my checkbox to be positioned farther left (so I can line it up with the checkboxes in each list item). I can not figure out how to move it farther left. It's almost like that's as far as it will let me p...

ASP.NET - Using CheckBoxes in a Repeater.

I'm a tad confused. I have a Repeater which populates a list of Checkbox controls and Label controls. But it doesn't seem like the checked state of the checkboxes is remembered in ViewState until AFTER the first postback. Scenario: I have 5 items in my custom checkbox list. I select the first 3 and submit the form. The first 3 are ...

WinForms TreeView with both radios and checkboxes

I have a case where I would like TreeView to be able to show radio buttons on multiple root nodes, and checkboxes on their children. There would only be one level of children beneath any root node. The radios should also behave like a group, ie one root is selected and the others' radios deselect. I've been trying to fake it with imag...

Select a row once checkbox is checked in a listview (.net)

I've got a listview with checkboxes enabled. I've noticed that even with a row selected, you can still check off other checkboxes on other non selected rows. The selected row does not change. I am wondering if there is a way to automatically change the selected row to the row which has just been checked. ...

XAML How to set IsEnabled on CheckBox in ListView with conditional.

I have a ListView with four columns ComputerName, IP, Status, UseMachine (String, String, String, Checkbox) I just want to disable the checkbox for the ListViewItem where Status = "Running" How can I do that? Here is the code I am using: <Window.Resources> <Style x:Key="ItemContStyle" TargetType="{x:Type ListViewItem}"> <Set...

django adding a checkbox to a custom field

I'm trying to write a field for django admin that will have 2 widgets: a textinput and an associated checkbox. If the checkbox is checked it will return none, if not return the value of the field. But I can't get the notch of it. Here is how I tried(note I'm new to django): class FloatRangeField(models.FloatField): __metaclass__=models...

Optimizing jquery checkbox script

Hi all, I'm trying to get better at using Jquery and therefore would like feedback on ways to optimize my script below. To briefly describe the functionality I have a "checkall" checkbox and a button for performing actions on the checked elements. If there's no elements checked, my button should be disabled and have the class disabled ...

Find location of a checkbox inside a table

I have a table that has checkboxes within tds. The checkboxes have ids that form an array (s[1], s[2], s[3], s[4], etc...) and I am trying to find out the numeric row location of the checkbox within the table>tbody (YES, this row location also matches the index inside the array. Here's the code I'm trying but the result is always "0": ...

Adding Member variable of check box in MFC Ribbon

hi i added a check box with resourceman in MFC Ribbon (in VS-2010), but i cant create a member variable for it in CMainFrame because "Add Variable..." button is disabled in "Class Wizard" what can i do for adding this variable? and how can i access to the created variable in a document ...

Finding checkbox value, writing to XML result

Hi, I'm creating a weekly HTML email writing template (hence the weird file name) and I'm using ASP and XML as the backend. The XML is prefect but the ASP isn't.. What I'm going for here is to create an XMl node that has a value of notchecked and checked depending on if the checkbox on the form is checked or not. I've tried using If ...