I followed a script where one flag unchecked another. This is a bit complicated since all the data is loaded programmatically. Therefore, if the box is unchecked, the procedure should take the value src, and then go through other inputs and find the input that has the header "RQlevel" + src value for the clicked elements and set it to the mark.
Here is the current code.
function levels() {
var test = $(this).attr('src');
if ($(this).is(':not(:checked)')) {
$(':input').each(function() {
if ($(this).attr('title') === ('RQLevel' + test)) {
$(this).removeAttr('checked');
}
});
}
}
There is a working example here that illustrates the problem. http://jsfiddle.net/V8FeW/7/
If both flags are checked and the first flag is unchecked, it should take the second block with it.
Wonderful
source
share