jquery print iterators
<p>I have the below code that iterates through a number of text fields. I am trying to write an if statement that will print if the jQuery is <code>jQuery('.textTextArea.print')</code> and not <code>jQuery('.txtTextArea.print').each</code>. I am new to jQuery but have experience writing if statements in rails but unsure about how to write an if statement to print if <code>jQuery('txtTextArea.print')</code>. Any help would be greatly appreciated </p>

<pre><code>jQuery('.textTextArea.print').each(function() {

    // set label text
    label.setObjectText("TEXT", this.value);

    jQuery('.numTextArea').each(function() {
        label.setObjectText("TEXT_2", this.value);



        // select printer to print on
        // for simplicity sake just use the first LabelWriter printer
        var printers = dymo.label.framework.getPrinters();
        if (printers.length == 0) throw "No DYMO printers are installed. Install DYMO printers.";

        var printerName = "";
        for (var i = 0; i &lt; printers.length; ++i) {
            var printer = printers[i];
            if (printer.printerType == "LabelWriterPrinter") {
                printerName = printer.name;
                break;
            }
        }

        if (printerName == "") throw "No LabelWriter printers found. Install LabelWriter printer";

        // finally print the label
        label.print(printerName);
    });

});
</code></pre>
