Hi guys i'm new to this site so don't be too harsh on me :P
basically I have created a function where onclick certain divs(ones with the word "false" in
them) are selected and the css display:none function is called. As can hopefully be seen here:
...
if (tickbox.checked == false) {
var unchecked = $("div:contains('true'):not(div:contains('false')").css("display", "none");
}
...
this is linked to a checkbox which calls the function everytime a checkbox is clicked (It serves to hide information that has been displayed when the checkbox was checked, when it is unchecked(sorry hard to understand). The problem is that whenever I check another checkbox it seems to reset this function causing all unchecked checkboxes to display their information which should be hidden.
If anyone can tell me how to sort out this problem or even write a new function that completely gets rid of the information div instead of just hiding it, as I feel this would sort the problem, it would be much appreciated!