Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,897 members, 7,956,386 topics. Date: Monday, 23 September 2024 at 10:58 AM |
Nairaland Forum / Science/Technology / Programming / Could This Basic Code Be Malfunction? (3177 Views)
Help Me Cross Check My Visual Basic Code / Need Help On This Basic Php / Need Help With This Basic Php (2) (3) (4)
Re: Could This Basic Code Be Malfunction? by Nmeri17: 8:09pm On Jul 29, 2015 |
blueyedgeek:you don't say I ditched Eloquent for this book and by His grace, I can live to narrate my ordeal that book basically requires doctorate degree level of knowledge in Complex English and Comprehension, before we even start discussing js kpaakpaa. by the time you search up the definition of the terms they used, you've forgotten the context it was used in. now eloquent is orgy |
Re: Could This Basic Code Be Malfunction? by blueyedgeek(m): 8:19pm On Jul 29, 2015 |
Nmeri17:Really? Both are great books sha. I would recommend head first Javascript 2nd edition but not everyone would like the style employed by the authors. For anyone still looking for js books, go to http://jsbooks.revolunet.com they have a great listing and everything is sorted based on difficulty level (beginner, intermediate and advanced) |
Re: Could This Basic Code Be Malfunction? by paranorman(m): 2:02pm On Oct 24, 2015 |
Here's the script: if (document.getElementById('hid').checked) { document.getElementById('hidDiv').style.display = 'none'; } the tags: <div id = "hidDiv"> This paragraph is meant to be hidden </div> <input type = "checkbox" id = "hid" /> error messgage: unable to set property "checked" of undefined or null referenced. I just wrote out the tags out specifically here for short. Confused oh. dhtml18 |
Re: Could This Basic Code Be Malfunction? by Nobody: 7:24pm On Oct 24, 2015 |
Try this one: <script> |
Re: Could This Basic Code Be Malfunction? by paranorman(m): 8:01pm On Oct 24, 2015 |
dhtml18:i have questions though: why does the window.onload functions have to accomadate the document.getElementById("".onclick = "" method before it works? You didn't explain why I am getting the error mesage because tThe code I wrote(which you corrected) works wel on the console. The element with id 'hid' is a checke list, why use the onclick event handler in your code? I think is only cool with buttons |
Re: Could This Basic Code Be Malfunction? by paranorman(m): 8:03pm On Oct 24, 2015 |
paranorman: |
Re: Could This Basic Code Be Malfunction? by Nobody: 2:00pm On Oct 25, 2015 |
Version 1:
Version 1B (jQuery Extended):
Version 2:
Version 3:
Version 4:
|
Re: Could This Basic Code Be Malfunction? by Nobody: 2:06pm On Oct 25, 2015 |
paranorman:onclick is an event handler that is bound to that checkbox so that whenever the checkbox is clicked, the code in the event handler are triggered. If you compare the jQuery version with the version 2 above, you will see a lot of similarities! |
How Profitable Is Android App Development In Nigeria? / Learn Git And Github [*ARCHIVED*] / Programming On Android Device
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 23 |