Search the Community
Showing results for tags 'javascript'.
-
So I've been taking a coding course recently and when I get code that I don't understand what's wrong with it, I naturally turned to the awesome people on the 17S Discord server. From there I was advised to start a thread on here. So after looking around, I didn't see a thread that was related to helping out with programming help. So I figured I would start this, and if people either need help or are willing to give it, they could (hopefully) come here. So that's pretty general, but hopefully it works out. Recently I've been trying to figure out jQuery, and to test it I have a bunch of checkboxes and radiobuttons. I'm trying to get it so that one is selected, the background turns a different color. I have the html and the css all set up, so I think it's a problem with the code. $('.left, .computers input').click(function(){$(this).parent('.input').toggleClass("formfocus");}); The code isn't inside a (document).ready, but it is inside a <script> element at the end of the <body>. So I was hoping some of you guys who are more experienced with jQuery could tell me what I did wrong. Debuggers haven't been able to help and the tags are all proper, so I'm pretty stuck right now.
- 3 replies
-
- coding
- programming
-
(and 6 more)
Tagged with: