jQuery to run after PHP load
<p>I'm working on a site using the Big Commerce platform. The cart page is built in snippets called by PHP. I don't have access to the PHP files. What I need to do is get the value of a span tag(at a given index) and retrieve the value, I use this value to determine what my minQTY text field should be. I want my code to run after the page has been loaded. However my script isn't working on the page. 
        </p>

<pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;

$(document).load(function(){
            $("a.CustomizeItemLink");
            $changeIndex = $("a.CustomizeItemLink").index('a.CustomizeItemLink');
            $change = $("a.CustomizeItemLink").length;
            $productTestArray = ['/american-boxwood-buxus/', '/lavander-crape-myrtle-lagerstroemia-fs/']
            $productLength = $productTestArray.length;

            for(i=0, j=0; i&lt;=$change, j&lt;=$productLength; i++, j++){
            $productTest = "http://www.tnnursery.net"; 
            $productTestValue = $("td.blah a").get(i);                    
            $productTest = "http://www.blah.net" + $productTestArray[j]; 
            $MD = $productTestValue;
            $MS = $productTest;
            $minQTYArray = ['100','100','75','50','25','20','15'];
            $cartSpanValue = $(".productAttributes td span:eq("+i+")").text();            
            $rdTestArray2 = ['6-12','12-18',"1-2'","2-3'","3-4'","4-5'","5-6'"];
            $arr2Test = jQuery.inArray($cartSpanValue, $rdTestArray2);
            $minQTYValue = $minQTYArray[$arr2Test];
            $cartQtyValue = $(".qtyInput:eq("+i+")").val();

            if($MD != $MS){

            }
            else{    
                if($cartQtyValue &gt;= $minQTYValue){

                }
                else{
                    if ($arr2Test == -1){
                    $cartQtyValue = $(".qtyInput:eq(" + i + ")").val('100');    
                    }
                    else{
                    $cartQtyValue = $(".qtyInput:eq(" + i + ")").val($minQTYValue);  
                    alert($cartQtyValue);
                    }
                }
            }
        }

    });
});
});
    &lt;/script&gt;
</code></pre>

<p></p>

<pre><code>    &lt;/td&gt;
    &lt;td class="ProductName" colspan="1"&gt;
        &lt;a href="http://www.blah.net/blah-blah-blah/"&gt;Item Name1&lt;/a&gt;&lt;table class="productAttributes" cellpadding="0" cellspacing="2"&gt;
&lt;tr&gt;
&lt;td&gt;
    &lt;label&gt;Plant&amp;#8203; Size&amp;#8203;s:&lt;/label&gt;
&lt;/td&gt;
&lt;td&gt;
    &lt;span&gt;12-18&amp;#8203;&amp;quot;&lt;/span&gt;
&lt;/td&gt;
</code></pre>

<p></p>

<p>
    Change
            <br />
                28500
            ()</p>

<pre><code>        &lt;div style="display: none" class="WrappingOptions"&gt;
            Gift Wrapping:

            &lt;a href="#" onclick="Cart.ManageGiftWrapping('4eea86d587825');" style=""&gt;Add&lt;/a&gt;
            &lt;span style="display: none"&gt;
                (&lt;a href="#" onclick="Cart.ManageGiftWrapping('4eea86d587825');"&gt;Change&lt;/a&gt; or &lt;a href="cart.php?action=remove_giftwrapping&amp;amp;item_id=4eea86d587825" onclick="return Cart.RemoveGiftWrapping();"&gt;Remove&lt;/a&gt;)
            &lt;/span&gt;
            &lt;br /&gt;
            &lt;span style="display: none"&gt;
                Gift Message:

            &lt;/span&gt;
        &lt;/div&gt;
    &lt;/td&gt;
    &lt;td align="center" class="CartItemQuantity"&gt;
        &lt;span style="padding: 0; margin: 0;"&gt;&lt;input type="text" size="2" name="qty[4eea86d587825]" id="text_qty_4eea86d587825" class="qtyInput quantityInput" value="50"/&gt;&lt;/span&gt;

        &lt;div style=""&gt;
            &lt;a href="cart.php?action=remove&amp;amp;item=4eea86d587825" onclick="Cart.RemoveItem('4eea86d587825'); return false;" class="CartRemoveLink"&gt;Remove&lt;/a&gt;
        &lt;/div&gt;
    &lt;/td&gt;
</code></pre>

<p>My question is how do I set my jQuery to run after the PHP has been loaded into the page?</p>
