Getting syntax error using jQuery
<pre><code>// Add an additional field to the checkout within a new fieldset
add_filter('eshopaddtocheckout','eshop_extras_checkout');

function eshop_extras_checkout($echo){

$echo .= '  &lt;script&gt;
        jQuery(function($) {
            $(".formGroup").hide();
            $("#chooseForm input:checkbox").on("change", function() {
                if($(this).is(":checked")) {
                    $("#" + $(this).val()).show();
                }
                else {
                    $("#" + $(this).val()).hide();
                }
            });
        });

    &lt;/script&gt;';



    $echo .= '&lt;fieldset class="eshop eshop_extra"&gt;' . "\n";


    $echo .= '&lt;legend&gt;Select the Approriate Form&lt;/legend&gt;' . "\n";

    $echo .= ' &lt;div id="chooseForm"&gt;
        &lt;input type="checkbox" name="forms2[]" id="ArticlesOrderForm" value="ArticlesOrderForm"&gt; &lt;b&gt;Articles Order Form &lt;/b&gt;&lt;br&gt;
        &lt;input type="checkbox" name="forms2[]" id="PressReleasesForm"  value="PressReleasesForm"&gt; &lt;b&gt; Press Releases Form &lt;/b&gt;&lt;br&gt;
    &lt;/div&gt;

    &lt;div id="ArticlesOrderForm" class="formGroup"&gt;
        &lt;legend&gt;Articles Order Form&lt;/legend&gt;
        &lt;label for="kwd1"&gt;Art-Keywords1&lt;/label&gt;&lt;input class="short" type="text" name="kwd1" value="" id="kwd1" maxlength="20" size="20" &gt; &lt;br&gt;

    &lt;/div&gt;

    &lt;div id="PressReleasesForm" class="formGroup"&gt;
        &lt;legend&gt;Press Releases Form&lt;/legend&gt;
        &lt;label for="kwd2"&gt;PRKeywords2&lt;/label&gt;&lt;input class="short" type="text" name="kwd2" value="" id="kwd2" maxlength="20" size="20"&gt; &lt;br&gt;
    &lt;/div&gt;';


 $echo .= '&lt;fieldset class="eshop eshop_extra"&gt;' . "\n";

    $echo .= '&lt;legend&gt;Extras&lt;/legend&gt;' . "\n";
    $echo .= '&lt;label for="eshop_extra"&gt;'.__('Extra Field','eshop').' &lt;span class="reqd"&gt;*&lt;/span&gt;&lt;br /&gt;
          &lt;input class="short" type="text" name="eshop_extra" value="" id="eshop_extra" maxlength="20" size="20" /&gt;&lt;/label&gt;&lt;br /&gt;';
    $echo .= '&lt;/fieldset&gt;' . "\n";

    return $echo;
}
</code></pre>

<p><br/>    <br/></p>

<pre><code>  // Add extra field to error checks
    add_filter('eshoperrorcheckout','eshop_extras_errorcheckout');
    function eshop_extras_errorcheckout($_POST){
        $myerror='';

        if(!isset($_POST['eshop_extra']) || trim($_POST['eshop_extra'])==''){
        $myerror= '&lt;li&gt;'.__('&lt;strong&gt;Extra Field&lt;/strong&gt; - missing.','eshop_extras').'&lt;/li&gt;';
    }



    if(!isset($_POST['ArticlesOrderForm'])) {

      if(!isset($_POST['kwd1']) || trim($_POST['kwd1'])=='') {
        $myerror= '&lt;li&gt;'.__('&lt;strong&gt;KWD1&lt;/strong&gt; - missing.','kwd1').'&lt;/li&gt;';
        }
    }


    if(!isset($_POST['PressReleasesForm'])) {

      if(!isset($_POST['kwd2']) || trim($_POST['kwd2'])=='') {
        $myerror= '&lt;li&gt;'.__('&lt;strong&gt;KWD2&lt;/strong&gt; - missing.','kwd2').'&lt;/li&gt;';
        }
    }   


        return $myerror;
    }
</code></pre>

<p>** Now iam not getting any syntax erors.... please check below link: (under select the appropriate form) , when u check them, they're missing away.. what am I doing wrong..? **</p>

<p>articlewritingservicess.com/shopping-cart/checkout/</p>
