How to remove element before?
Hi,
I need to remove H3 and DIV. Here is code:
- <myDIV>
- <h3 number=0></h3><!-- number automatically generate by ASP -->
- <problemDIV number=0><button here></problemDIV>
- <h3 number=1></h3>
- <problemDIV number=1></problemDIV>
- </myDIV>
In problemDIV I have delete button (for delete H3 and problemDIV) and click function has:
- $("#myDIV").remove( "h3[number=]"+$(this).attr("number"));//doesnt work
- $("#myDIV").remove( "problemDIV[number=]"+$(this).attr("number"));//doesnt work