473,738 Members | 11,146 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Toggle effect of checkbox not working

18 New Member
I need to have a simple toggle event to a checkbox and in addition to that, save the checkbox state and the related text or div state after page refresh. I found this script that works exactly as i want here
but when i upload the exact same code to my page, it doesn't work.
my page.
So what's the problem? Can anyone help?
thanks
Oct 11 '12 #1
1 1698
Rabbit
12,516 Recognized Expert Moderator MVP
It's because the working one uses the jquery framework and yours does not include a reference to the jquery framework.
Oct 12 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
6674
by: Targa | last post by:
I have a form in which I want to have an button(image) displayed next to a checkbox when it is checked. If the box is unchecked, the button should disappear. How can I do this? Thanks!
1
2330
by: BK | last post by:
Dear all, I need help with access 2000. I have a form "Child" with subform "Grand" (3 levels). I have a toggle box in every record in the lowest level of the form for status. I want to have a toggle box in the parent form (2nd level) that when I update it, all the toggle boxes in the subform are updated, but I still have the ability to update the toggle box manually and individually. If I set the recordsource to equal to the field in...
0
1113
by: sapo | last post by:
This is my code: def list(self): tree = self.principal.get_widget("list") self.list = gtk.ListStore(bool,str) self.options = renderer1 = gtk.CellRendererToggle() renderer1.set_property('activatable', True) renderer1.connect( 'toggled', self.selection, self.list)
2
11422
by: John Smith | last post by:
How can I use a transparent command button to change a checkbox? I have my records set up in a continuous form and I want theuser to be able to click on the record and have this toggle the "Print" checkbox. the command button would be set up as transparent and cover the entire record.
0
1272
by: zionblue | last post by:
This effect is working fine in IE and FF, but in Opera.. not so good. Any idea what I can do to fix the issue in Opera? Click any link from this list - http://adoberealtykanab.com.wehostwebsites.com/mls.cfm to see what I mean... just be sure the listing you are looking at has photos, and then mouse over the tiny thumbs at the top left... Any suggestions or help with this greatly appreciated. I like this effect but can't figure out why...
6
2272
by: Toby Inkster | last post by:
Does anyone have any idea why this effect using script.aculo.us is working in Opera, but not Firefox? http://examples.tobyinkster.co.uk/Balloons2/Balloon%20tooltip.html (I've not had the courage to even try it in IE yet!) Any ideas for a fix? Thanks
6
10018
by: RobertTheProgrammer | last post by:
Hi folks, I'm using ASP.NET with C# code behind. I've got a GridView on my page that has several checkbox fields that are bound to database fields. I want the checkboxes to be visible and editable during normal "EditItemTemplate". However during "ItemTemplate" display, I want it to be ReadOnly. In other words, unless the users are in edit mode, they cannot toggle the checkbox. Apparently checkboxes don't have a ReadOnly option. I've...
4
6162
by: ameshkin | last post by:
I have a checkbox with an ID of svc_tp_1, and an image that corresponds with this checkbox below it. <input type="checkbox" name="checkbox" id="svc_tp_1" value="svc_tp_1" / <img src="images/screen_print.jpg" onclick="toggle('svc_tp_1'); return true;" /> I know how to get the checkbox to check when the image is clicked, but what I really want is a toggle. When a user clicks on the image, the system should first check to see if svc_tp_1...
1
2990
by: student4lifer | last post by:
Hello, I currently have a hyperlink to toggle the node, showing and hiding the list. Could someone show me how to use a checkbox instead of the hyperlink to do the same thing? Thanks. I tried the following line but the node's nextSibling becomes instead of <div>. Then I tried node. nextSibling.nextSibling but it didn't work. Please help!
0
1354
by: Chocolade | last post by:
I created a new form and added split container and then on the left side a treeview and on the treeview i added nodes and on the right side of the split container i added a groupbox. Now in the groupbox i added a checkbox and what i wanted to do is when its checked it will activate voices on my program i mean SpeechSynthesizer() And its working when i check in the checkbox it says "Voices are now enabled" and when uncheck it says " Voices...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.