Is it possible to take the content that is under a specific <div> and email that content?
For example:
If I have something like this:
<div id="1">
<ul>
<li>a</li>
<li>b</li>
<ul>
</div>
Basically I want to just reference <div> and take the whole content and email it.
is there any way to cache the contents in the div?
Is this anyway possible? ( javascript? php?)
Thanks.
It really depends on what further requirements you have. You could have a jQuery script send the contents to a PHP script, which then emails them out:
And then your email.php script looks similar to the following (Don’t use the following code as-is):