I have the following if-test
$("div#groupA > ul").each(function(){
if (!($("div#groupA > ul").css("display")==="none")) {
$('div#groupA > ul > input[value="9999"]').remove();
}
});
$("div#groupA").fadeIn();
OR
$("div#groupA > ul").each(function(){
if ( $("div#groupA > ul").css("display")!=="none" ) {
$('div#groupA > ul > input[value="9999"]').remove();
}
});
$("div#groupA").fadeIn();
But both are removing <input value="9999">s that are in other divs outside of <div id="groupA">.
How do I get it to remove only <input value="9999">s that are inside <div id="groupA">?
Thanks!
I was doing something unusual with the switch statement that encased this.
The swtich(true) was working fine, except when I did an evaluation inside of a case. Then it crapped itself (and only did bits and pieces of the if-statement).
What I ended up doing was:
btw, sorry for not posting back right away: it never e-mailed me when there was a new response.