Property Scope Issue?
<p>I'm attempting to reference the <code>discount_code</code> property from within the object, but I keep getting the following error. How can I access <code>discount_code</code>?</p>

<p>Error:</p>

<blockquote>
  <p>Uncaught TypeError: Cannot call method 'val' of undefined</p>
</blockquote>

<p>HTML:</p>

<pre><code>&lt;input type="text" name="txt_discount_code" value="12345" /&gt;
</code></pre>

<p>JS:</p>

<pre><code>var cart = {
    transaction: {},
    discount_code: $('input[name=txt_discount_code]'),

    get_cart_items_params: {
        page: 'checkout',
        s_method: 'get-cart-items',
        txt_discount_code: this.discount_code.val()
        // txt_discount_code: cart.discount_code.val()
    }
};
</code></pre>
