Tagged Questions
0
votes
1answer
38 views
Optimize jQuery events
I've a lot of checkboxes, like:
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
...nearly 1000
...
0
votes
3answers
48 views
Javascript 'innerHTML' Method Overwriting Checkbox Selection
I have a form, id="myForm" or document.forms[0], with checkbox inputs, which I am writing dynamically with the help of Javascript functions and another HTML form, id="addForm" or document.forms[1], ...
4
votes
3answers
97 views
how to compare 2 checkbox'es values
Here http://jsfiddle.net/SW5NH/5/ I created some automatically generated table (DOM + JavaScript).
I want to compare whether checkbox's Input1[z] value (true/false) is equal to Input2's[z] value.
If ...
0
votes
2answers
42 views
when the checkbox is checked allow one data for dropdownlist
I want to know on how to handle this using Javascript, When i Checked the Checkbox of IsPrimary , i Will limit that dropdown data to becaome an unique value where it is the only one who is primary on ...
0
votes
1answer
51 views
Display textbox control when checkbox is checked
I have used the following JavaScript to display Two Textbox Controls with Calendar Extenders when CheckBox is checked. Otherwise, they will be hidden. (I hide the table row which contains Textbox ...
0
votes
5answers
59 views
Count checked checkboxes
I am new to HTML, I have a list of checkboxes on a form in an HTML page.
Each checkbox on each line represents a different category "I" "D" "C" and "S".
Part of my code is as follows:
<form>
...
0
votes
1answer
18 views
Enabling PayPal buttons with a checkbox
Im kinda of a nooobie when it comes to coding, but here it goes, hope someone can help. I was asked to set up a payment page using two paypal buttons. When you first arrive at the page the buttons ...
-1
votes
1answer
21 views
Better JavaScript Coding - What's your recommendation? [closed]
I am a complete noob when it comes to programming. I wrote this script for a checkbox in Acrobat and would like to know from the community what a better, more condensed way to write it would be. ...
1
vote
3answers
55 views
jQuery/Javascript Checkbox
i want do something like this with a checkBox. if the user clicks on the checkbox, it should change its state (checked -> unchecked and vv. ).
my code:
$('#checkBoxStandard').change(function() {
...
0
votes
0answers
28 views
'Clever' markers belonging to multiple categories
I'm looking for a clever way to solve a marker show/hide problem I have. I have an array of markerdata, where each marker belongs to a certain category. Based on these categories, the markers can be ...
1
vote
2answers
39 views
ASP.NET/Javascript: this.id is empty for asp:CheckBox
I have an asp:CheckBox with the following tag:
<asp:CheckBox ID="cbTest1" runat="server" onchange="cbChange(this.id);"/>
cbChange is a Javascript function in the <head> that looks like ...
0
votes
2answers
37 views
create a check box that comments in/out a CSS line
So what i want to do is add border radius to a div when the user checks the check box and remove it when the check box is unchecked
here is how my code looks like:
the html:
<div ...
0
votes
2answers
53 views
How to check and uncheck the checkbox several times using jquery?
I'm using the .attr() jQuery function to check and uncheck others checkbox. It work the first time but then it doesn't any more.
After read several questions about it I just can make it work. e.g. ...
0
votes
5answers
69 views
how to get all the selected checkboxes after they got unchecked
Let's start from the beginning...
I have checkboxes in the table and they have unique VALUES.
For example:
<input type="checkbox" value="2">
<input type="checkbox" value="3">
I want to ...
0
votes
1answer
30 views
How can one checkbox be disabled from a group of checkboxes in ExtJS?
I know that a checkboxgroup can be disable and enabled by the disable()/enable() functions.
But how can I disable only one out of group? Is this even possible?
{
xtype: 'checkboxgroup',
...
0
votes
0answers
57 views
Row selection and deselection in kendo grid using checkbox
I am using kendo grid and check box in the grid.I have an option to check all the rows using checkbox and uncheck them too.Its working perfectly.Now when i check a individual row the row is getting ...
0
votes
2answers
22 views
How do I bypass this apparent Webkit checkbox rendering bug?
The alleged rendering bug can be seen here:
http://jsfiddle.net/2FZhW/
<input id="box" type="checkbox">
<button id="chk">Check</button>
<button ...
1
vote
2answers
38 views
Cannot get the value of checkboxgroup in extjs window
I have an ExtJS window that contains checkboxgroups in it and a button to get the selected values.
I have two isseus with it. This is the code:
Ext.create('widget.window',
{
title : ...
0
votes
1answer
23 views
displaytag pagination javascript counting checkboxes
I have a displaytag table which uses the checkbox decorator to keep track of selected values in the table. I'm trying to use Jquery to keep track of the # of selected values in the table for ...
0
votes
5answers
48 views
Setting checkbox as checked with jQuery
I have two input checkboxes, and I want to check/uncheck them with jQuery:
<input type="checkbox" name="user1" value="1" id="u1" onclick="loadUserCalendar(1)">
<input type="checkbox" ...
0
votes
1answer
16 views
Checkall check boxes generated through javascript
I am trying to create a checkall checkbox that will check all the checkboxes that I had created using java script.
I first take the no of rows and columns from the user and then generate a table ...
0
votes
0answers
28 views
GM markers on/off based on categories & checkboxes
I am trying to have markers in different categories & then present them on map by using checkboxes. I have followed an approach found on stackoverflow by @Sonia 2 yrs ago.
my sample js is like ...
0
votes
2answers
59 views
Html CheckBox : Change Color
During the developing of an .NET application I have came across a problem.
What I want to do, is to change the background color of a simple Html checkbox, so I have used the following HTML code:
...
0
votes
1answer
55 views
Trying to give value to Java variable in JSP after checkbox's value
I am creating a web interface in jsp. I have a java String variable (let's call it 'a') and some radio buttons, and I am trying to get the value of the checked one on click (without submiting the ...
0
votes
4answers
34 views
Check 2 checkboxes with one click on dynamically made list of checkboxes
I have a list of checkboxes that go together. One is for a name the other is for a price. I need to check the one for price and the corresponding name one gets automatically checked.
Here is my code:
...
0
votes
2answers
38 views
Javascript validation code to make sure that at least one checkbox is marked
How would I add javascript validation to make sure that at least one of the items is checked?
Select from courses below:
<ul id="class_prices">
<li>
...
3
votes
2answers
287 views
multiple select checkbox in jquery
I want to show the multiple value of checkbox in a div or textbox.
function countChecked() {
var n = $("input:checked").val();
$("div").text(n + (n === 1 ? " is" : " are") + " checked!");
}
...
11
votes
2answers
16k views
How do I encode a javascript object as JSON?
Is there a good way to encode a javascript object as JSON?
I have a list of key value pairs...where the name is from a checkbox, and the value is either true or false based on whether the box is ...
2
votes
3answers
5k views
Check all checkboxes on page load with jQuery
On page load, using jQuery how can I select all check boxes in a specific div automatically?
1022
votes
26answers
710k views
Check checkbox checked property using jQuery
I need to check the checked property of a checkbox and perform an action based on the checked property using jQuery.
For example, if the age checkbox is checked, then I need to show a textbox to ...