I would like to get the html between two Divs
for my page except a table which contains hidden values for jqplot
and also a big Div
for this jqplot
. It seems like I should use jQuery :not()
selector to exclude these two elements. However, my code failed. So could anyone give me some suggestions? Here is a demo, and below is the basic idea of my code. The only stuff I need is contents until the first table
Thanks!
HTML
<div class="articles">
<h2 class="model_header">Exponential Model Output</h2>
<table align="center">
<!--end 04uberoutput_start-->
</table>
<table width="550" border="1">
</table>
####I need nothing below#####
<p> </p>
<table width="400" border="0" style="display: none">
</table>
<div id="chart1" style="margin-top: 20px; margin-left: 20px; width: 650px; height: 400px; position: relative;" class="jqplot-target">
</div>
</div>
JS:
var jq_html = $("div.articles:not(table&div)").html();