FAQ Database Discussion Community


Having problems while trying to implement a CheckBox in a custom todolist using a custom adapter?

android,listview,checkbox,android-listview
I am adding data through an editable text to a listview, listview is custom made and each row contains a textview and a checkbox, for now I want a toast message to appear whenever I click on a checkbox of each row for that I am implementing View.OnClickListener on the...

aligning hierarchical checkboxes

html,css,checkbox
I am not good with CSS. I am not sure how to align checkboxes in columns with their child checkboxes underneath as a hierarchical representation. Example, I have countries and their respective states to be shown in a hierarchy but in columns as shown in the image below. I am...

Clear the 'All' checkbox when some of the sub-checkboxes have been un-clicked?

c#,.net,winforms,checkbox
I have a form that has several check-boxes, and an 'All' check-box that, of course, fills or empties the rest. The issue that I'm running into is that I need it to un-check the 'All' box once one of the sub-boxes has been unchecked. The logic of how to do...

check input next of every div with class

jquery,checkbox
i was trying to check all the inputs when i load the page. My html was: <td class="even bundlecheckbox"> <input onclick="bundle.changeSelection(this)" class="checkbox bundle-option-1 validate-one-required-by-name" id="bundle-option-1-2" type="checkbox" name="bundle_option[1][]" value="2"></td> It repeats maybe 10 or maybe 4 times. I try to make it with jQuery like this: jQuery(document).ready(function() { jQuery('.bundlecheckbox').next('input').prop("checked",true); }); But...

How to get checked checkboxes number with JS/HTML?

javascript,html,checkbox
I want to add a JS function in my HTML, when more than 0 checkboxes are checked, will be display a dark window in website top with actions to do (case it's bigger than 1, no function will be occurred). And when there're no checked checkboxes (lower than 1), the...

WPF Interactions CallMethodAction for DataTemplate in ListCheckBox thrown a exception “Could not find method on object of type”

c#,wpf,xaml,checkbox,listbox
I'm trying to use interactions, but I can't write ordered params in my method in ViewModel. I'm use a ListBox who have items inner a checkbox and another controls. So I trying to use the different combinations of params TargetObject of CallMathodAction in my usercontrol, but I can't get the...

When I click a checkbox in a knockout table row, the tr click event overrides the checkbox state change

javascript,checkbox,knockout.js
I have a knockout table with checkboxes (for the example here, I've limited to one checkbox per row). when a checkbox is clicked, it should flip state (as you expect). however, I also have a click event and select event on the table row, which is conflicting with the checkboxes......

Checkbox exclusion on DIV click

jquery,html,css,checkbox
I have a simple div container, with a formatted <ul><li> inside to display contact information. When you click on the div it will take you to the page to show their profile. This is working fine. However, is there a way I can make it so that the checkbox is...

AngularJS and checkboxes

angularjs,checkbox
I'm learning AngularJS and play around with it a little. I have now a little understanding problem with checkboxes. Here is my JavaScript code: angular.module('app',[]).controller('MainCtrl',function($scope,$http) { $scope.photo = 1; $scope.art = 0; $scope.change = function() { $scope.photo = 0; $scope.art = 1; } }); and HTML: <div ng-controller="MainCtrl"> <div class="checkbox">...

listview with checkbox get selected row index

c#,wpf,listview,checkbox
here is my problem , i have a listview with checkbox , and i want to get the index of the row which is selected i want to get the index of the row to disable this row after validation i try different method CheckBox cbx = sender as CheckBox.tag;...

VB.Net: Display total when check boxes are checked

vb.net,visual-studio,checkbox,include
I am making a EXP multiplier for a game, so when i key in an amount, i will tick the certain multiplier and it will multiply my EXP to display how much EXP i will earn. I want to be able to know how to include statement if i check...

Radio and Checkbox Checked Values Won't Show in JavaScript

javascript,checkbox,radio-button,window.open
I'm trying to get the value of a radio button and multiple checkboxes to appear in a new window using JavaScript. I can't seem to figure out why "true" return instead of the actual value checked. Below is the code and screenshot of the results. function messagebox() { var newWindow;...

how to submit only checked checkboxes

java,javascript,jquery,checkbox,submit
I want to add a "submit" button that submits only the checked checkboxes. I don't know how to pass only the checked ones to the server. thanks. The Button: <a:commandButton id="saveAllBtn" value="Submit All" style="width: 60px; cursor:pointer" action="#{urlAction.saveAll()}" reRender="qualificationForm,messages" disabled="#{urls.rowCount==0}" requestDelay="100" onclick=" disableOperations();beforeRedirect();" onfocus="highlightButton(this);" onblur="unhighlightButton(this);" actionListener="#{growlBean.save}">...

Sum values of checkbox labels

javascript,jquery,checkbox
I've got checkboxes with labels like 1 some text I would like to get the number out of the labels of the checkboxes that are checked and add them together. I was trying to do something like what I have below but it is not giving me anything. var total...

checkbox updating another checkbox on different form

javascript,checkbox
my first javascript is not working, hope you can help. I am trying to make a checkbox on one form check a checkbox on another form. This is based on this link: check/uncheck checkbox based on another checkbox Here is my simplified code <formname="A" action="WebPage.php" method="POST"> <input type="checkbox" name="Aa" onchange="update()"...

jQuery (Mobile): get all checked items (checkboxes)

javascript,jquery,checkbox,checked,prop
I got trouble finding a solution to this one. I have an amount of checkboxes, and I want to get how many of them are checked. Each time a box get checked/unchecked, the value needs to update. What I have so far: http://jsfiddle.net/drhmorw5/3/ My code so far: function selected() {...

WPF CheckBox CheckChanged event

c#,.net,wpf,events,checkbox
After Checkbox.IsChecked = true, the Checked event is fired. After Checkbox.IsChecked = false, the UnChecked event is fired. But what event is fired after IsChecked = null?

required checkbox group

javascript,jquery,angularjs,checkbox,required
I'm trying to validate a group of checkboxes where at least one is required. This is the HTML of my checkboxes: <fieldset class="requiredcheckboxgroup"> <legend>How did you come into contact with VK?*</legend> <input ng-model="application.contact.relations" group-required required type="checkbox" name="appcontact" value="relations" id="app-contact-relations" />relations<br> <input ng-model="application.contact.employees" group-required required type="checkbox" name="appcontact" value="employees"...

Backbone checkbox value in tr view

jquery,table,backbone.js,checkbox,collections
I'm currently programming the web interface for a mvc web application and I need to get the models which have their checkbox checked. At the moment this is the template i use to generate a single table row: <td><span class="userintern"><%= intern %></span></td> <td><span class="username"><%= name %></span></td> <td><input id="add" class="add" type="checkbox"...

Trouble dynamically changing state of checkbox with AJAX

ajax,checkbox,label
I am trying to have to check boxes through ajax, but it is not working properly. I am not able to change state of the first checkbox, only the second one is working fine. Could anyone spot the error here? $.ajax({ type:"POST", url:"../scripts/domainlist.php?dept="+deptid+"&pro="+proid, contentType:"application/json; charset:utf-8", dataType:"json", success: function(data){ $('#domainlist').empty(); $('#domainlist')...

Drop-Down-Check-Boxes select un-select malfunction

javascript,c#,jquery,checkbox
I Have a DropDownCheckBoxes <asp:DropDownCheckBoxes CssClass="FreeTextFilterSelection" ID="cbMarket" AddJQueryReference="false" UseSelectAllNode="True" AutoPostBack="true" DataTextField="Text" runat="server" OnSelectedIndexChanged="cbMarket_SelectedIndexChanged" style="height: 19px" > <Texts SelectBoxCaption="" /> </asp:DropDownCheckBoxes> and SelectedIndexChanged event for it protected void cbMarket_SelectedIndexChanged(object sender, EventArgs e) { try { string s = string.Empty; string s1 = string.Empty; int i = 0;...

WPF: Deselect all my Checkbox when one is selected

wpf,listview,checkbox
This is my first ListView row column that contain CheckBox: <GridViewColumn Width="40" > <GridViewColumn.CellTemplate> <DataTemplate> <CheckBox Name="cbSelectInterface" IsThreeState="False" ></CheckBox> </DataTemplate> </GridViewColumn.CellTemplate> </GridViewColumn> How can i add the option to check only one CheckBox in specific Row and what i choose another CheckBox and check this control all other CheckBox become...

HTML, CSS and CheckBoxes

html,css,checkbox
I'm trying to render some html checkboxes using css. I want it to look something like this (with all of the check boxes on one horizontal line and labeled): <html> <body> <center> <form id="pluginsForm"> <input type="checkbox" value="Button_1" name="plugin">Button_1 <input checked type="checkbox" value="Button_2" name="plugin">Button_2 <input type="checkbox" value="Button_3" name="plugin">Button_3 <input checked type="checkbox"...

Binding checkbox to model and check/unchecking it in Angular

javascript,angularjs,checkbox
I have a the following HTML: <li ng-repeat="test in lists.Tests"> <label> <input type="checkbox" id="cbxAcceptTest" ng-checked="{{test.IsAccepted}}" ng-click="testSelection($event,{{test}})" /> </label> </li> and the testSelection method as : $scope.testSelection = function ($event, test) { if (test.IsAccepted) { alert('accept'); } else { alert('reject'); } }; I am not able to trigger this method on...

Use checkboxes to filter to a new array of objects - javascript

javascript,arrays,function,object,checkbox
I have an array of objects: var array = [ {"date":"Jan 1", "job":"teacher"}, {"date":"Jan 1", "job":"lawyer"}, {"date":"Jan 2", "job":"doctor"}, {"date":"Jan 4", "job":"doctor"} ]; I want to use checkboxes to filter by "job" and then have a new separate array of objects that is filtered (leaving the original array intact). I'd...

Filter by checkbox show/hide div link jquery

javascript,jquery,html,css,checkbox
I have my jquery checkbox filter that works by showing/hiding the div, when I added an <a href="#"></a>the checkbox no longer shows/hides the div 2 of the div's are links to demonstrate, the other 2 purposefully not links to show they work. Question is what needs to be added to...

AngularJS, ng-repeat, checkboxes and toggleAll

angularjs,checkbox,angularjs-ng-repeat,toggle,ionic-framework
There's no question. Searching over the internet, you can easily find examples with how ng-repeat and checkboxes work. All these examples include only few checkboxes. But, have you tried to create several hundred checkboxes, then use some toggle button to check/uncheck all checkboxes? The app becomes totally unresponsive. In browser...

Checkbox arrays

javascript,arrays,checkbox
Just wondering if anyone can help. I currently have code like this: <section> <span class="tags"></span> <label for="shoes">Shoes</label> <input type="checkbox" id="shoes"> <label for="jeans">Jeans</label> <input type="checkbox" id="jeans"> <label for="tops">Tops</label> <input type="checkbox" id="tops"> </section> <section> <span class="tags"></span> <label for="monkey">monkey</label> <input type="checkbox" id="monkey">...

Make Check box is checked

php,checkbox
How can I make my check box is checked using PHP, when i visit the page later i want previously selected check boxes are checked <input name="product[]" type="checkbox" value="1" /> ...

Holding information in hashtables or arrays then outputting

c#,checkbox,hashtable
I am developing a program in c# and am not sure what to do about this problem. In my program, I have a large amount of checkboxes (Yes and No) and when No is selected, a textbox appears prompting the user to write a comment, example below: private void checkBox48_CheckedChanged(object...

select all checkboxes in angularJS

javascript,angularjs,checkbox
I am new AngularJS. I am trying select all checkboxes with single checkbox and also execute checkboxClick method. because we setting values to scope. How to do that? <input class="check-box" data-val="true" type="checkbox">Select All </input> <table class="table table-bordered"> <tr> <th></th> <th>Printed</th> <th>First Name</th> <th>Last Name</th> <th>Company</th> <th>City</th> <th>Country</th> </tr> <tr ng-repeat="item...

Need to update UI when a checkbox is changed

javascript,jquery,html,twitter-bootstrap,checkbox
I have a situation where is have a Bootstrap 3 based page which has a checkbox on it: <input type="checkbox" value="Y" id=userActive checked> Before I display the form I want to set the correct state based on the value of the field in the database like so: if (ra.active=='Y') {...

php error in getting multidimensional array through checkbox and textboxes of same row or multiple rows

php,arrays,checkbox,multidimensional-array
i want to fetch multiple textbox values corresponding to the checkbox selected... we can select one or multiple checkboxes at a time and on button click the output i need is like this: suppose my array is like this: array1('first','second','third'); array2('a','b','c','d','e','f','g','h','i') . and output i need is:- first,a,b,c second,d,e,f third,g,h,i...

Get and display checked checkbox index

javascript,jquery,html,checkbox
I'm trying to display the checkbox position when the user check the checkbox every time using Jquery. For example, when user check Monday, it will display position 0 and when user check Sunday, it will display position 6. I could not find a way to do it. I have tried...

Angular: ng-repeat depending on state of other object

javascript,angularjs,checkbox,ng-repeat
I'm having trouble figuring out how to use ng-repeat based on the state of objects in different arrays. Imagine my page displays 3 tables, populated using ng-repeat: A list of persons, with a checkbox thats checked based on an active field. A list of messages, showing only the messages for...

Prevent a read-only checkbox from calling a event handler?

jquery,asp.net-mvc,checkbox,checkboxfor
I have a list of checkboxes with the same syntax below, some of them are read-only: @Html.CheckBoxFor(model => model.SrsSettingList[i].LeftPickup, new{ @class= "chkSRSPickup"}) First I want to mention that I cant use "disabled" atrribute in this case. Please dont tell me to do that. Below is my event handler when I...

JavaScript & Checkboxes - More efficient way of storing values of each checkbox?

javascript,jquery,checkbox
Is there a more efficient way of storing my checkbox values? Each checkbox has an assigned value, I was wondering if there was a better way of storing these values (destinationoflink1,2,3,etc)? perhaps store them as an array and call them?...although I am unsure HTML page extract: <form> <label for="checkbox1">Link #1</label>...

Multiple checkboxes filtering using filterrific

ruby-on-rails,checkbox,filterrific
I have 4 checkboxes using the same scope. It's used for filtering the house with certain number of bedrooms. The last checkbox stand for "4 and more" bedroom <%= f.check_box(:with_bedroom_num_check, {multiple: true}, '1', nil) %> <%= f.check_box(:with_bedroom_num_check, {multiple: true}, '2', nil) %> <%= f.check_box(:with_bedroom_num_check, {multiple: true}, '3', nil) %> <%=...

Add and subtract values with jQuery

javascript,jquery,html,checkbox
Need Help with following piece of jQuery code; What I'm trying to do is; add Amount into Total when amount added Checkbox value get double If checkbox state change, checkbox Updated value minus or add into Total accordingly if Amount minus from Total, checkbox value change back to original If...

Add a “Select All” checkbox to lists of checkboxes that update an array of objects

javascript,jquery,checkbox,d3.js
I have two lists of checkboxes (there will be additional lists later), for example: <ul> <li><input type="checkbox" onchange="handleChange()" name="job" rel="it-manager" value="IT-Manager" id="IT Manager" class="selectedId" checked> IT Manager</li> <li><input type="checkbox" onchange="handleChange()" name="job" rel="consultant" value="Consultant" id="Consultant" class="selectedId" checked> Consultant</li> </ul> <ul> <li><input type="checkbox" onchange="handleChange()"...

How to make TDBCheckBox update its DataField immediately after click?

delphi,checkbox,event-handling,delphi-xe3,data-aware
I have a form with several controls where the first one is a TDBCheckBox that is bound to DataField := 'enabled'. When the checkbox is clicked I want all the remaining controls to be enabled / disabled. procedure TMyAdapter.DataSourceDataChange(Sender: TObject; Field: TField); var Enabled: Boolean; begin Enabled := FModel.DataSet['enabled'].AsBoolean; FView.Label1.Enabled...

Load page and input values

javascript,checkbox
Is it possible somehow to open url, without loading it. Let me explain, I'm creating check-box which will let to create new log and automtically input values. I know how to take boxes and input value into them using javascript. But i don't know how to open that page without...

Navigation for slider by checkbox

jquery,checkbox,slider,radio
Continuing experiments with my own slider. Now making nav arrows. So Im asking how to make it work? I’m using next()/prev() to make next/prev input checkbox to be checked. But next()/prev() isn’t working. Why? Here is the code. $('.to-right').click(function(){ $('input[type="radio"]:checked').next('input[type="radio"]').prop("checked", true) }); $('.to-left').click(function(){ $('input[type="radio"]:checked').prev('input[type="radio"]').prop("checked", true) }); ...

Innosetup task Page edit

checkbox,task,inno-setup
I want to edit the task page in inno-setup and make checkbox for: Install Visual C++ I have Tried- [Tasks] Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons} Name: vcredist_x64; Description: Install Visual C++; Flags: unchecked [Code] procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssPostInstall then begin var ResultCode: Integer; begin if...

How to get collection of ng-model Checkbox in AngularJs?

javascript,angularjs,checkbox,ionic
Here is my data: var fields = [ {id: 1, name: 'Model'}, {id: 2, name: 'Price'}, {id: 3, name: 'Condition'}, {id: 4, name: 'Ads Type'} ]; Here is my view code: <ion-checkbox ng-repeat="field in fields" ng-model="field.id" ng-checked="field.id"> {{ field.name }} </ion-checkbox> <button class="button button-positive" ng-click="updateField()"> Update SubCategory Field </button> Here...

Selecting and highlight a DataGridView row by checking a checkbox

powershell,checkbox,datagridview
$Form = New-Object System.Windows.Forms.Form $Form.Text = "testform" $Form.Size = New-Object System.Drawing.Size(250,300) $Form.StartPosition = "Centerscreen" $button = New-Object System.Windows.Forms.Button $button.Location = New-Object System.Drawing.Size(50,100) $button.Size = New-Object System.Drawing.Size(140,30) $button.Text = "Click Here" $button.Add_Click({[void] $form1.ShowDialog()}) $Form.controls.Add($button) $form1 = New-Object System.Windows.Forms.Form $form1.Size = New-Object System.Drawing.Size(500,600) $Form1.Text =...

How to add checkbox to uicollectionview in swift

swift,checkbox,uicollectionviewcell
some time ago someone already asked this question and a few answers were given but i didn't really understand any of them. So i was wondering if anyone could please write an easy to understand tutorial on how to do the things shown on the image below: http://i.imgur.com/BzIBOkH.jpg?1 I would...

if Html.CheckBox is checked or not

javascript,jquery,html,checkbox
I have a simple question regarding html.checkbox Using this as an example: @Html.CheckBox("IncreaseStock", Model.IncreaseStock == null ? false : (bool)Model.IncreaseStock) now doing a alert to see if the checkbox is tick or not: var IncreaseStock = $('#IncreaseStock').val(); if (IncreaseStock == true) { alert("true ") } else { alert("NOT TRUE") }...

Check a checkbox in a table row where a “delete” icon has been clicked on using JQuery

jquery,checkbox
First, I'd want to tell that i'm not a native speaker so please forgive me my mistakes. Also, this is my first time posting here. Here we go. I've searched for days everywhere (especially here) the mistakes i could have made in my code. It's probably a very stupid...

Local storage not saving the checkbox unchecked stage

javascript,jquery,html5,checkbox,local-storage
I am using jquery and local storage to save the state of a checkbox. For saving I use: function save_form() { window.localStorage.setItem('fb_show', $('#fb_show').val()); alert('Saved'); } function load_form() { var fb_checkbox_val = window.localStorage.getItem('fb_show'); alert(fb_checkbox_val); if (fb_checkbox_val == 'on') { $("#fb_show").prop("checked", true); } else { $("#fb_show").prop("checked", false); } } The problem is...

Why is this jQuery not working on my Sharepoint page?

jquery,html,checkbox,sharepoint-2010,web-parts
I have this code at the bottom of my Sharepoint WebPart's .ascx file: <script> $(document).ready(function () { alert("The ready function has been reached"); $('#ckbxEmp').on("change", function () { if ($('#ckbxEmp').prop("checked")) { alert("Checked"); } else { alert("Not checked"); } }); }); </script> On running the WebPart (opening a page that has the...

sortable check boxes with a tag

javascript,jquery,html,jquery-ui,checkbox
hi bit of a noob to this, but is it possible to have 3 check boxes and hide my a tag when one is checked but the if checkbox 2 is checked it hides that as well then when you uncheck checkbox 1 it will still stay hidden if the...

Prevent changing checkbox value [duplicate]

php,checkbox
This question already has an answer here: Can HTML checkboxes be set to readonly? 38 answers Prevent user from editing checkbox value with something like FireBug? 2 answers As I've found no other answer over the web, I'm asking here : I'd like to find a way to prevent...

Angular Show All When No Filter Is Supplied

javascript,angularjs,checkbox,filter
I have been working on trying to get my Angular application to show all results if no filter is selected. I have looked at similar questions on here, but their answers did not work for my application for some strange reason. I have it working initially, but after a filter...

android checkbox drawable crashing app

android,checkbox
i'm kinda new to android and i am following other questions and answers on stack overflow and i feel like i am getting close, But i can't get it to work. when i tried it crashes my app. just to test it's functionality i am using and and my code...

Validation on other when more than one checkbox is checked

javascript,jquery,validation,checkbox
I have a form that has series of checkboxes. When the other checkbox is selected an alert appears if you don't fill in the other textbox. If I select more than one checkbox it doesn't validate at all? <form> <div id="form-2" class="pages active" data-page="form-2" style="display: block;"> <p>Please indicate below the...

FX - Suggestions for aligning CheckBox in Grid

java,checkbox,javafx,grid,alignment
Converting from Swing to FX here. We have some CheckBoxes where the Label appears on the left side of the CheckBox. We are accomplishing this by calling setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT); The problem is that in some GridPanes, we'll have a Label in column 0 with a Node in column 1 on row...

Select choice based on what's selected (Radio buttons)

javascript,jquery,html,checkbox,radio-button
Sorry to bother everyone but I'm in a bit of a snag. I'm trying to setup my code to select an item based on the country selected and type of shipping. I can get it to work with just the country but when I try to add they type of...

How to add checkBox in Dialog and get value?

checkbox,dialog,axapta,x++,dynamics-ax-2012
I want to add a CheckBox in my Dialog. I used this code: Dialog dialog; DialogField dialogField; NoYesId checkValue; ; dialog = new Dialog("New dialog with checkBox"); dialogField = dialog.addFieldValue(identifierStr(NoYes) , checkValue); checkValue= dialogField.value(); dialog.run(); info(strfmt("Value %1" , checkValue)); So, in Debug I see the value of the variable (checkValue)...

Android onClick checkbox not checked in listview

android,listview,checkbox
I am working on Customized ListView using CheckBox. I tried to check single selection CheckBox when we click in Item of ListView. How can I do it? My XML code <TextView android:id="@+id/addressTXT" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_marginTop="10dp" android:text="Price" /> <CheckBox android:id="@+id/addressCheckBox" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true"...

Javascript - return dynamic row data with checkbox input

javascript,forms,select,checkbox,tabular
I seem to only be able to find the answer to this problem in JQuery and I would really like a pure JS solution. I have a dynamically generated table that I build from a parsed JSON file. I added a checkbox for each row. My question is, do I...

How do I stop the checkbox appearing, so it is slider only

javascript,jquery,html,css,checkbox
I'm using slider 3 from here: http://cssdeck.com/labs/css-checkbox-styles It is the "On/Off" Slider, I have copied the HTML and CSS. Everything is working as it should, however on my webpage the "Checkbox" is still visible along with the On / Off slider, please see: http://i.imgur.com/n7Pbitj.jpg CSS I used is: /* SLIDE...

How to filter and show only selected items in datagridview?

c#,checkbox,datagridview
I have a datagridview and recently I got task to add a checkbox column (which I did) and a button (btnFilter) that will filter/show only selected rows so for example if I check only 4th, 5th and 6th row and click on 'btnFilter' the datagridview would show only rows 4,5...

Rails 4: Save Checkbox Results to Serialized Array

ruby-on-rails,ruby,ruby-on-rails-4,checkbox,form-helpers
I have a Campaign model with a channel column. This channel will store a serialized array of chosen results via checkboxes. Here's the model.. app/models/campaign.rb class Campaign < ActiveRecord::Base serialize :channels, Array end app/controllers/compaigns_controller.rb class CampaignsController < ApplicationController def index @campaigns = Campaign.all.order("created_at DESC") end def new @campaign = Campaign.new...

Why When I scroll my ListView with CheckBox selected it becomes unselected?

android,listview,checkbox,android-listview
I have seen some posts here talking about this but I did not see any answer accomplishing to my problem. I have this ListView with some TextViews and one CheckBox, everything is OK except that when I scroll the list some checked become unchecked. Here is my getView adapter code:...

with an input checkbox inside a table row, can i add click event to row and still be able to click input

javascript,jquery,html,checkbox
I have a table: <table> <tr> <td>Something</td> <td>Something Else</td> <td><input type='checkbox' value='clickme' id='yes'></td> </tr> For the user, if they click the row, they get more data about the row, and if they click the checkbox, they are presented with some other options. how can i listen for each event in...

Can I uniquely identify 2 check boxes so that I can add a different image to each?

html,css,asp.net,checkbox
Currently I am using an image for checked and unchecked checkboxes the html and css is below. <div class="text-field-box text-field-box-mobile radio-button-box small"> <asp:CheckBox ID="ChkOffer1" text=" " runat="server" class="checkbox checkbox-mobile radio" Visible="true" EnableViewState="true"></asp:CheckBox> <% Response.Write(Session("Offer1"))%> </div> and css input[type=checkbox] { display:none; } input[type=checkbox] + label { background-image: url("checkbox-default.png"); background-repeat: no-repeat;...

Passing checkboxes values to view in django

django,checkbox,django-templates,django-views
I have a table with some database data <table id="id_list_table" class="table table-condensed"> <caption>Inputs list</caption> <thead> <tr> <th>#</th> <th id="input">Input</th> </tr> </thead> <tbody id="fbody"> {%for input in InputsAll%} <tr> <td>{{ input.input }}</td> <td> <a class="btn btn-primary btn-xs" href="{% url 'edit' %}?input_num={{input.id}}" id="edit">edit</a> <a class="btn btn-danger btn-xs" href="{% url 'delete'...

jQuery Validation on checkboxes - parent and child checkboxes

jquery,checkbox,jquery-validate
I want to write a jQuery Validation rule for check-boxes where a parent checkbox category must be selected and a child category for that parent has to be selected too (should the parent have a child checkbox). Otherwise the form will not submit. The code below has 2 parent check-box...

How do I set the Select All “checkbox” iMacros Without using the button “Play (Loop)”

javascript,select,checkbox,imacros
How do I set the Select All "checkbox" iMacros Without using the button "Play (Loop)" and without making the tag to 50 lines since our site I visited was no key select all and I need to choose 50 categories. Here's the code that I use and try This version...

Having problems while trying to delete single rows from a custom ToDo list?

android,android-fragments,checkbox,android-studio
I want to delete selected rows from a todo list by clicking on the checkbox and deleting them trough the delete button, for that I am within my custom adapter setting a setOnCheckedChangeListener on my checkbox and setOnClickListener on my delete button, now keep in mind that the delete button...

Three state checkbox plugin with indeterminate state as a question mark

css,twitter-bootstrap,checkbox
I'm developing a website and I've been looking for a plugin which allows me to use three state checkboxes. Unfortunatly, all the stuff I've found (like here : http://extremefe.github.io/bootstrap-checkbox/) has their "indeterminate" state as a full square or as a dash. I need it to be a question mark ?...

Jquery duplicate selected checkbox

javascript,jquery,forms,checkbox
I have a search page that uses a form and checkboxes to display results. When the page reloads with the new results, I want to display something like this at the top of the page so users can easily remove one of their selections: X Blue     X Red    ...

Filtering MySql database with multiple checkboxes in VB.NET

mysql,vb.net,checkbox
I want to filter my datas which are stored in MySql database with combining multiple checkbox and textbox queries. You can find the screenshot of the form here: SEARCH FORM: TABLES: PROJECTS TABLE DETAILS TABLE PS: Only ID field in Projects table is unique! If user writes in any of...

Data-binding to ng-model inside of checkbox

javascript,angularjs,checkbox
My problem is that I'm trying to access these checkboxes from inside the controller so I can set them to true from there. For some reason, I can't figure out the correct ng-model to use for these checkboxes such that I have the ability to do so, while maintaining that...

Laravel 5 not storing checkbox value

php,laravel,checkbox,laravel-5
We are having a strange issue with Laravel 5 in that it is refusing to store the checkbox value. We are adapting the existing registration form that comes bundled with Laravel 5 and we are adding an optin checkbox but it seems the model does not recognise this as a...

select all checkbox and have the value of checked checkbox to 'on' jquery

javascript,jquery,html,checkbox
This is my fiddle for selecting from 3 checkbox. I want to have the value of selected checkbox to on while the unchecked are value off. I write the default value to off and tried to change the value of checked to on. Any suggestion is appreciated

how do i make checkboxes like radio button

javascript,jquery,checkbox
I'm having difficulty using jQuery to make the checkboxes act like radio so I can only check one of the three checkboxes <legend>Choose your delivery option!</legend> <label> <input type="checkbox" id="delivery" name="delivery" value="standard" /> Standard Delivery </label> <label> <input type="checkbox" id="delivery" name="delivery" value="2day" /> 2 Day Shipping </label> <label> <input type="checkbox"...

Bootstrap Toggle for Checkbox adding extra div

jquery,checkbox,toggle,clone,bootstrap-switch
We have a form where users can create a shipping type by entering a name in a text field and optionally toggle a checkbox. To add another shipping type, we use jQuery's clone method to rebuild the fields one or more times. My goal is to change the checkbox into...

Custom CSS Checkbox with caption inside

html,css,checkbox
I'm trying to create a custom CSS for checkboxes following designer's specs. My checkboxes have to be circle with 60px radius, and the checkbox label must be places at the center of that circle. Moreover, when the checkbox is "checked" the background must becomes red. Here is what i achieve...

Check box for Column listview Wpf

c#,wpf,listview,checkbox
How to create Check box for Column inside Listview. i was able to make checkbox for listview items. but i want to have checkbox for Column itself.like in windows: here is code in XAML <ListView HorizontalAlignment="Left" Grid.Row="1" Width="400"> <ListView.View> <GridView> <GridViewColumn Width="140" Header="Column1 With Checkbox"> <GridViewColumn.CellTemplate> <DataTemplate> <CheckBox Tag="{Binding}" IsThreeState="False"...

XPages checkboxgroup and default value

checkbox,xpages
As a follow up to my question on checkboxgroups, how does one set a default value? Here's the source code for a test XPage: <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:checkBoxGroup id="checkBoxGroup1" defaultValue="First"> <xp:selectItem itemLabel="First" itemValue="1"></xp:selectItem> <xp:selectItem itemLabel="Second" itemValue="2"></xp:selectItem> <xp:selectItem itemLabel="Third" itemValue="3"></xp:selectItem>...

How Jquery get textbox array value when checkbox value checked?

jquery,checkbox,textbox
I want to get only textbox value where checked by checkbox, all textbox and checkbox from database array. <tr><?php foreach($arrbook as $book) { ?> <td><input type="checkbox" name="book" class="book" value="<?php echo $book['id_book']; ?>"/> <?php echo $book['name_book'];?></td> <td><input type="text" name="bookprice"class="bookprice" value="<?php echo $book['book_price']; ?>"/</td> <?php } ?></tr> <td><div class="button"><a href="#"...

TextView and Checkbox inside LinearLayout, but Checkbox disappears

android,checkbox,android-linearlayout
I have TextView and CheckBox inside LinearLayout. Checkbox must appear to the right of the TextView. In the Eclipse View, Checkbox appear, but when i launch app in my device checkbox disappears. This is Eclipse view (Checkbox is the star): This is part of my xml file: <RelativeLayout android:id="@+id/infoinstalacion_fragment1_relative_imagen_poli" android:layout_width="match_parent"...

JQuery in MVC - Send form data as array with getJson

javascript,jquery,asp.net-mvc,checkbox
I have an MVC view which updates the elements on the page by using getJSON pointing at a method in my controller periodically and parsing the returned Json. Method blueprint in controller: public JsonResult GetAttendeeJson() { //Code which creates the Json I need. return Json(result, JsonRequestBehavior.AllowGet); } Call from View:...

css checkbox checked material design overlay

javascript,jquery,html,css,checkbox
I'm trying to do some fancy material design like checkboxes but I got stuck at applying an overlay when the checkboxes are checked. Here is an example of what I have done so far: http://codepen.io/stefancenusa/pen/rVwEBB input[type="checkbox"]:checked + label { /*what should i write here?*/ } What I intend to do:...

Is there a JSF toggle component or a way to theme an h:selectBooleanCheckbox with images?

jsf,button,checkbox,toggle
I tried using a toggle like below. Although it works, it breaks when used inside of a composite component - changing the singleSelect value outside of the component never updates inside the component: <h:commandButton disabled="#{cc.attrs.singleSelect}" image="/resources/img/collapse-single.gif"> <f:ajax listener="#{cc.toggleSingleSelect}" render="#{cc.clientId}"/> </h:commandButton> <h:commandButton disabled="#{! cc.attrs.singleSelect}" image="/resources/img/expand-single.gif"> <f:ajax...

javascript checkbox check all

javascript,jquery,html,checkbox
I'm working on a check all button, but I'm a bit too unfamiliar with javascript to do this part. Essentially, I have a checkbox at the top of the page, and when you check it, it goes through and changes a checkbox in each row of a table to be...

Event on dynamically created checkbox asp.net

c#,jquery,asp.net,table,checkbox
I started to programming with asp.net, I have a table with some checkboxses. The problem is, I can't create static tables, because this action is linked with some parameters. Anyway.. When I click on the First checkbox I want to invert the other checkboxes in this table. How can i...

How to change checkbox follow JSON string?

javascript,jquery,ajax,json,checkbox
I want to change checkbox follow JSON string . But i don't know how do it . This is me JSON string, "1" is mean checked and "0" is mean unchecked [{"Group_Product":"G04","Orange":1,"Banana":0,"Apple":1,"Candy":0,"Food":1}] And html code. <table id=table_product> <tr><td><input type="checkbox" class="checkbox1" id="Orange" name="check[]" />Orange</td></tr> <tr><td><input type="checkbox" class="checkbox1" id="Banana" name="check[]" />Banana</td></tr> <tr><td><input...

Saving multiple checkboxes using PHP-jQuery to MSSQL Server

php,sql-server,ajax,json,checkbox
I am trying to save a record in to MSSQL server data base from multiple checkboxes using PHP-jQuery But this error appears. The problem is in PHP code, how to read this string and record this data in MSSQL DB? //PHP page: cat-grupos.php if(isset($_POST['buttonsave'])) { //echo "bttnsave"; // Mensaje Afirmativo....

How to disable checkbox with jquery?

javascript,jquery,checkbox
I searched more time with it but it's not work , I want to checkbox is disabled, user not check and can check it if some condition . Ok, now , i trying disabled them.I use jquery 2.1.3 <input type="checkbox" class="checkbox1" id="chk" name="check[]" value="U01" />Banana <input type="checkbox" class="checkbox1" id="chk" name="check[]"...

Checkboxes will only work on current pagination page in jQuery datatables

javascript,php,jquery,checkbox,datatable
I am using jquery data table for listing my content which have checkbox selection and selected content post the data but in submitted form only current page data sent. My Data table code is: $('#select').dataTable( { "order": [[ 2, "desc" ]], "lengthMenu": [[50, -1], [50, "All"]], "columnDefs": [ { orderable:...

How I disable or uncheck all checkboxes, if one checked in array?

javascript,jquery,checkbox
I have to use group of checkboxes in my project. This is how my HTML look like: <label class="checkbox-inline"> <input type="checkbox" name="hairColor" value="1"> hairColor-1 </label> <label class="checkbox-inline"> <input type="checkbox" name="hairColor" value="2"> hairColor-2 </label> <label class="checkbox-inline"> <input type="checkbox" name="hairColor" value="3"> hairColor-3 </label> <label class="checkbox-inline"> <input type="checkbox" name="hairColor" value="4"...

PHP pass value of checkbox to query

php,checkbox,pdo
Hello so I have this form with 3 checkbox: <form action="send.php"> <input type="checkbox" name="txt_group" value="CID">CID <input type="checkbox" name="txt_group" value="OSDS">OSDS <input type="checkbox" name="txt_group" value="SGO">SGO <input type="submit"> </form> And in my send.php I have this code: $stmt = $dbc->query("SELECT * FROM tblcontactlist WHERE contactGroup=:cgroup"); $stmt->bindParam(':cgroup', $_POST['txt_group']); $stmt->execute(); I think that if I...

Difference between prop and trigger

jquery,checkbox
Is there a difference between: $('.mycheckbox').prop('checked',true); and $('.mycheckbox').trigger('click'); Both of the statements, check the checkbox. But is there anything different that happens?...

How to get value of checkbox in table?

javascript,jquery,table,checkbox
How i can get value of checkbox in table , I want use for in this case in order get parameter.Now , please see html table <table id="div_func" class="table table-bordered" style="width: 100%"> <thead> <tr> <th> <input type="checkbox" id="chk_all" /></th> <th>Name</th> </tr> </thead> <tbody> <tr> <td> <input type="checkbox" class="checkbox1" id="chk" name="check[]"...

JCheckBoxes not being disabled after I setEnable(false) them

java,swing,checkbox,jframe,enable-if
If have 30 checkboxes and I don't want more than 6 of them to be checked. I have an int keeping track of how many are checked. Each box has an item listener which calls a method to see what that int is at, and if it reaches 6, the...

ng-if or ng-checked matching from comma separated value

html,arrays,angularjs,checkbox,angular-ng-if
I have following HTML <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example - example-ngModel-getter-setter-production</title> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script> <script src="app.js"></script> </head> <body ng-app="getterSetterExample"> <div ng-controller="ExampleController"> <form name="userForm"> <label ng-repeat="id in ids"> <input type="checkbox"...

how to store all checkbox values in array in php

php,arrays,checkbox
i m trying to store checkbox values inside variable $days but when i store this value to database it just store the last selected checkbox inside the database... please help me to sort out the code so i can get all selected values <?php if (isset($_POST['days'])) { foreach ($_POST['days'] as...