Right now I have some html that looks like this once rendered.
<div id="MyPartial">
<div id="div+1"></div>
<div id="div+2"></div>
<div id="div+3"></div>
</div>
All of the div's inside of the MyPartial div are dynamic. so there could be 3, or there could be none. I am trying to remove them one at a time via there ID.
$("#div+" + Id).remove()
this didn't work so i tried this
$("#MyPartial").children().select("#div+" + Id).remove();
This removes the entire 'MyPartial' div.
What am I missing? The first statement has always worked fine for me in the past but it seems like the nesting is messing things up now.
Edit: the plus sign was messing me up. I changed it to an underscore and it works fine. thanks everyone.