jQuery. Select all the elements that classname starts with
<p>If I have elements with classnames like this:</p>

<pre><code>   .ses_0 .ses_1 .ses_2 .ses_3  
</code></pre>

<p>How can I select all the elements and prepend those with some snippet?
Something like this:</p>

<pre><code>    var sessions = $('*[class*=ses_]');

    for (var i = 0; i &lt; sessions.length; i++)
    {
        sessions [i].prepend("&lt;img src='/Content/img/caticon"+i+".png' /&gt;");
    }
</code></pre>

<p>That doesn't work of course.</p>

<p><strong>Edit:</strong> Ahhhh... damn It seems that I need to get not only those classes that start with .ses_ but also   <code>&lt;a&gt;</code> elements within. How can I do that?</p>

<p>Basically something that works <code>$(".ses_0 a")</code> , only I need to get all the classes start with ses_</p>
