Replaced Inefficient Javascript with JQuery with language errors
<p>In the process of trying to be more efficient I have been learning a bit of JQuery, but obviously don't know enough.</p>

<p>I need a script that will get each checked function $(':checked').each(function() . Then if a hidden field id (combined with this fields alt tag's) title is not equal to this check boxes title to perform jquery load.</p>

<p>I could go on with trying to explain this but I would rather show what I mean. If you look at the code below the 2 elements which cannot exist are :alt and :title. If you can see what I'm trying to do then any ideas how I would get it working. Data driven site has left me few alternatives.</p>

<pre><code>function product_analysis_global() {
    $(':checked').each(function () {
        if ($('#product_quantity_PRI_' + ':alt').title != ':title') {
            $('#product_' + ':alt').load(':title');
            $('#product_quantity_PRI_' + ':alt').title = ':title';
            $('#product_quantity_PRI_' + ':alt').value = ':value';
        } else if ($('#product_quantity_PRI_' + ':alt').title != 'http://www.divethegap.com/update/blank2.html') {
            $('#product_' + ':alt').load('http://www.divethegap.com/update/blank2.html');
            $('#product_quantity_PRI_' + ':alt').title = 'http://www.divethegap.com/update/blank2.html';
        } else
        return false;
    });
}
</code></pre>

<p>Many Thanks,</p>

<p>ps. Implementation can be seen here where by the radio buttons and checkboxes should load in the appropriate products. You will need to click on Beginners to load the form.
<a href="http://www.divethegap.com/update/diving-trips/adventure-training" rel="nofollow">http://www.divethegap.com/update/diving-trips/adventure-training</a></p>
