i need to get the value of 3 hidden fields in a gridviewrow where the checkbox has been checked & build a querystring with them.
I can only use Javascript, it's ...
I have multiple checkboxes in a form. Based on clicking those checkboxes, I show a div section. But if I uncheck even one checkbox, that div section gets hidden. How do ...
For some reason my check box isnt controlling the fileupload field I have. Can anyone see what is going wrong with this? When I check the box it does nothing and ...
Hello, I have a checkbox marked "Yes" which will show a div with the ID of Yes if checked. The problem is, if it is unchecked nothing happens. I think a simple if else statement would do the trick but I am not sure... I want to show a div on checked and hide on unchecked. This is my code. all ...
Hey guys Okay I'm looking to hide a set of divs. Let's say I have an unknown amount of divs that all share the same id (so that they can be hid and shown at the same time). So I want a checkbox that will toggle them all on or off (checkbox will be checked initially). How do I build this. ...
__________________ Three gigs for the secretaries fair Seven gigs for the system source Nine gigs for the coders in smoky lairs One disk to rule them all, one disk to bind them One disk to hold the files, and in the darkness grind'em --------------------------------------------------- It is by caffeine alone that I set my mind in motion. It is by the beans ...
xXREDXIIIXx Irregular Posts: 45 JS: Custom checkbox's + showing hidden divs on: February 05, 2010, 03:24:53 PM Sorry I want to post this here as at least I Know I can get replys here been more then 24hrs and no help in the JS forums... I dont claim any of the JS below as my own I can get ...
Im a gomplete newbie here. so please be gentle. I dont claim any of the JS below as my own I can get the code to work if I dont use my own custom images. Code: [Select] function showMe(id){ var obj = document.getElementById(id); if (obj.style.display == "none"){obj.style.display = "inherit";} else {obj.style.display = "none";} } Code: [Select]
To separate your target checkboxes from the rest, you would have to give them a class that would permit you to target them. I have modified the previously posted code //get all the input fields var myCheckbox = document.getElementsByTagName('input'); //process each input field var z = 0; var zMax = myCheckbox.length; while(z < zMax) { if(myCheckbox[z].getAttribute('type') == 'checkbox' && myCheckbox[z].className == ...