JQuery :: Using Checkboxes To Control Other Elements?

Nov 25, 2010

I want to use two checkboxes to control the appearance of two blocks. The click method doesn't work well for this situation. I have tried to use the change method, but don't know how to detect which checkboxes are checked.

$(':checkbox').change(function(){
// ....
$(':checkbox:checked').each(function(){
// ???? });
});

View 3 Replies


ADVERTISEMENT

Have 2 Checkboxes.How To Control One From The Other

Sep 24, 2011

I have 2 checkboxes.How would I control one from the other?

Eg.
[ ] Option A
[ ] Option B

[code]....

View 7 Replies View Related

Control For Checkboxes Form Not Working

Mar 29, 2011

This control function Button1_onclick() for checkboxes in the my form not working, why?
Code:
<HTML><HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script language="javascript" type="text/javascript">
// <!CDATA[
function Button1_onclick() {
if (!controllo_check()){
alert("Stop");
return;
}document.forms[0].submit();
}function controllo_check(){
var cks = document.forms[0].chkParent;
var checked = false;
for(var i = 0; i < cks.length; i++){
if(cks[i].checked){
checked = true;
break;
}}
return checked;
} .....

View 2 Replies View Related

JQuery :: Hide Different Elements In A Repeater Control?

Sep 21, 2010

I have several elements in a repeater control like this:

<table id="Table2" class="table2" align='left' style="padding-left: 3px;
margin: 0; width: 400px;">
<caption>
Blah

[Code].....

However the problem with this is that when I change the dropdown box it changes the hide/show status for every item in the repeater.

What is the best way to only have it hide/show the items in the repeater where the dropdown box is located?

View 4 Replies View Related

Assigning Elements To Classes To Control Events

Apr 8, 2011

I'm trying to use a javascript class to assign specific event handlers to different elements. I create an object and pass it a reference to the element, and some properties for the event handler to use. When the event fires, I want the handler to reference the properties of the object. But I'm clearly doing something wrong as multiple instances all refer to the most recent object only.

View 1 Replies View Related

Need Next-previous Control To Control Contents Within An IFrame?

Oct 10, 2011

Situation:I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.condition of the frame, fixed width/height, no scroll, no border.Very new to javascript but need this code to make a page work for BIZ.

View 1 Replies View Related

Select Any 10 Checkboxes Out Of 20 Checkboxes?

Aug 2, 2009

I have the HTML all laid out for what I'm trying to do. I want to have the user be able to select any 10 checkboxes, and keep a tally of how many are selected, and how many are left to go. Should I do this with jQuery?

Code HTML4Strict:
Select any 10 cds for $20<br />
You have chosen $selected CD's<br />
You have $remaining CD's left</p>

[Code].....

View 10 Replies View Related

JQuery :: Show / Hide Elements Or Remove / Add Elements Based On Radio Selection By User?

Mar 14, 2010

I have a page I am working and I am having some trouble with: I need to show and hide areas based on a radio selection. I initally started using the show / hide feature in Jquery but the problem is the elements need to be removed but then put back if the user selects the radio buttonagain as it has form elements that have validaion on them. The validation is still trying to validate the form elements becuase they are still on the page but just not showing. This is the radio group the user makes the selection from:

<input name="terms_usr" type="radio" id="terms_usr_1" value="1"/>
<label for="terms_usr_1">Credit Card</label>
<input type="radio" name="terms_usr" id="terms_usr_2" value="2"/>
<label for="terms_usr_2">C.O.D</label>

[Code]....

View 3 Replies View Related

JQuery :: How To Add New Tab To UI Control

Mar 3, 2011

How to add a new tab to a tab control by clicking a button on the first tab? Do I use the "add" method? If so how?

View 3 Replies View Related

JQuery :: Add Control Id Dynamically?

May 28, 2011

$("div").prepend("<button id ='b10'>X</button>");

Above code is working but i want to enter a user wanted value for id which i am getting dynamically thru ajax request it is not working

$("div").prepend("<button>X </button>").setAttribute("id","b"+number);

My Full code is::-
----------------------------------------------------------------------------
$(document).ready(function() {
//First Method
$("button").click(function() {
var bid= $(this).attr('id');

[Code]...

View 15 Replies View Related

JQuery :: Set Disabled If Control Has A Value?

Aug 10, 2010

I want to set all date fields to disabled if they have a value. All fields share a common class - 'datefield'.

View 2 Replies View Related

JQuery :: Using To Control Z-index?

Oct 22, 2011

I would like to add a z-index of 999 to each of the divs; .thumbs, .thumbs2 and .thumbs3 as and when they are selected by the javascript below. I would like the z-index to return to 0 when they are no longer selected.

[Code]...

View 8 Replies View Related

JQuery :: Asp.net 'compound' Control Selectors?

Feb 22, 2010

I have a page that has several embedded usercontrols with a popup reorderlist. Like

[Code]...

isthis the correct approach and if so what should the 'fld1' line look like to pull this data.

View 1 Replies View Related

JQuery :: Autocomplete Menu Goes Behind ASP Control

Oct 11, 2009

I am using the autoupdate plugin. I have a listbox(asp.net control ) just below the autocomplete textbox. In IE6, the autocomplete menu goes behind the asp.net control. This happens only in IE6. It works fine in IE7.

View 2 Replies View Related

JQuery :: Conditional Validatorgroup In Asp.net Control?

Jul 26, 2011

i have a asp.net required field validator with a validationgroup setting to show a validation summary. some of my form fields are either shown or hidden depending on selections elsewhere. if a div containing a form textbox is hidden i want to hide this element from showing up as a required field in the validation summary so effectively needto remove the validationgroup="mygroup" from the validation control. how would i do this? i know how to check if a div is visible or hidden but not how to use it to conditionally set the validator control attributes.

View 3 Replies View Related

JQuery :: Control Tabindex After Datepicker?

Jun 23, 2009

I'm using the datepicker and found that after selecting the date it would be great to have the cursor go to the field that the date was entered in. The cursor goes to the top of the page currently. how to control that? I guess it's a matter of setting focus after the datepicker function finishes but I'm not sure where that is.

View 1 Replies View Related

JQuery :: Control The Date Of Datepicker?

Nov 21, 2011

Is there a way to control the date of datepicker? I mean the user cannot control what is the current date of today? I found some users they adjust the date and time properties of a computer so the datepicker will adjust the date too!

View 1 Replies View Related

JQuery :: Set Default Value In Fileupload Control?

Sep 3, 2009

I have a problem that I'm able to set default value in text box using jqury but don't know how to set default value in file upload control.For filling textbox I'm using the following code:

$("#TextBox1").attr("value","Default value");

View 1 Replies View Related

JQuery :: ClueTip And ActiveX Control?

May 15, 2009

I have a web page which contains a legacy ActiveX control (I know...) and am having a problem with the ClueTip plugin. Whenever a tooltip is displayed which should obscure the ActiveX it instead is drawn behind the ActiveX control. I have tried setting the value of cluezIndex to 1000, and also tried adding "<param name="wmode" value="transparent" /

View 1 Replies View Related

JQuery :: How To Control Loaded Page

May 15, 2009

how to control loaded page

$("div [id='menuTopLink'][class='menuTopLink4']").click(function () {
$("div [id='mainViewIn'][class='mainViewIn1']").slideUp("slow",function(){
$("div [id='mainViewOut'][class='mainViewOut1']").slideUp("slow");

[code]....

View 2 Replies View Related

JQuery :: Lose Control After New Table?

Feb 10, 2010

I wrote a program that serves no real purpose while trying to learn. It's posted at [URL]. I generate a simple table and everything works as expected. However, I have radio buttons that cause a like table to be generated. Afterward my mouse functions are inoperable. All new tables do generate correctly and the classes are identical to the original's classes. The significant part of the code is:

Code:
$(document).ready(function() {
generateTable($("#tbl"), 1, 3, 1);
$('.inlibutton').click(function(){
var valvalue= $('input[name=radbutton]:checked').val();

[Code]....

View 5 Replies View Related

JQuery :: Add Control To All Form Fields Of A Type?

Aug 26, 2009

I want to know if there is a way to automatically add a UI control to all fields of a certain type, for instance:

Lets say I have two form fields, with ID/Name of startDate ad endDate.

On a different page, I have say, 4 date fields, like Date1, Date2, Date3, Date 4.

Is there a way to have jQuery notice when fields have an ID that contains "date" and automatically add the datepicker to them?

I ask because I want to create a template with controls like this, where you simply name all form fields relatively standard things and jquery will automatically add the right controls.

View 4 Replies View Related

JQuery :: Building Tree Control From Scratch?

Nov 29, 2011

i m in deep trouble in implementing Tree control .. which will be having data from 'mysql' database.

View 1 Replies View Related

JQuery :: Control Contents In Sliding Effect?

Feb 6, 2010

making a site where i have multiple menu bars sliding up or down showing content. I'm wondering if there is a way to control the contents of the sliding div because now it slides up slightly aswell as the div gets closed (or opened), but i'd like it to stay where it is.So basicly i want the contents of the sliding div not to move when its animated, is that possible? Maybe with another jquery command?

View 2 Replies View Related

JQuery :: Cycle: Fx:'none' When Linking From External Control?

Jul 15, 2010

when link from first thumbnail there's no transition.. I would like that same effect when link from any other thumbnail.. i.e., fx:'none' when linking from any thumbnail.. looked in FAQ, found examples for linking from external controls, but none to eliminate transition effect when linking from any ext control..

View 5 Replies View Related

JQuery :: Original Form Control Don't Appear With Zoom

Jan 27, 2011

I'm new using JQuery UI and for some reason everything seems zoomed. The calendar appear big, the accordian widget appears big, everything is big. But the original form control don't appear with zoom and the browser has no zoom either.[code]

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved