Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

jQuery simple printing


Test content:

<div id="content">
    <div id="sub_content1">
        CONTENT SUB_CONTENT1
    </div>
    <div id="sub_content2">
        CONTENT SUB_CONTENT2
        <div class="class_sub_content2">
            CONTENT CLASS SUB_CONTENT2
        </div>
    </div>
</div>

Example 1:

<script>
$('.myPrintLink').click(function()
{
    $.simplePrint('#content');
});
</script>

Print: All content

Example 2:

<script>
$('.myPrintLink').click(function()
{
    $.simplePrint('#content #sub_content1');
});
</script>

Print: Only the div with id = sub_content1

Example 3:

<script>
$('.myPrintLink').click(function()
{
    $.simplePrint('#content #sub_content1 .class_sub_content2');
});
</script>

Print: Only the div with class name = class_sub_content2