Welcome Guest ( Log In | Click here to Register a free account now! )
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.![]() ![]() |
Sep 10 2009, 05:56 PM
Post
#1
|
|
|
Member ![]() ![]() Group: Members Posts: 91 Joined: 25-August 08 Member No.: 233,126 |
CODE <head> <script type="text/javascript"> function showhide(box,id) { var elm = document.getElementById(id) elm.style.display = box.checked? "table-row":"none" } </script> //Down in the body: <insert type="checkbox" name="v1[]" value=$vname onclick="showhide(this,$vname)"> Unfortunately, I keep getting an "object required" error on the line with CODE elm.style.display = box.checked? "table-row":"none" Any ideas? Thanks in advance for your help! |
|
|
|
Sep 10 2009, 06:42 PM
Post
#2
|
|
|
Member ![]() ![]() Group: Members Posts: 91 Joined: 25-August 08 Member No.: 233,126 |
Ummm, yeah... found my own mistake. I was missing single quotes around the variable name that I was passing to the function. Thanks anyways!
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 21st November 2009 - 09:11 PM |