<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".divclass").each(function(){
email = $(this).html();
$.post("sendemail.php", { email: ""+email+"" },
function(data){
//do something after each email
});
});
});
</script>
<div id="a" class="divclass">[email protected]</div>
<div id="b" class="divclass">[email protected]</div>
<div id="c" class="divclass">[email protected]</div>
<div id="d" class="divclass">[email protected]</div>
<div id="a" class="divclass">[email protected]</div>
|