It is my life's ambition to get this jQuery to work
<p>I'm trying to write some jQuery for my first-ever mobile version of a particular page. If I detect a small browser size, I'm showing only a list of articles. Once a user clicks on an article, I want the list to minimize and the article to be shown in the main content. I'm trying to do this by hiding the list when an article is clicked on, but I can barely get beyond the basic step of making the page to anything at all. Here's my attempt to merely put a border around the article list on mouseover: </p>

<pre><code>&lt;script&gt;
    if( $(window).width() &lt; 481 &amp;&amp; $(window).width() &gt; 0 ) {
        $("div.st_tabs_container").mouseover(function () {
            alert("asdfasd");
            $("div.st_tabs_container").css("border", "3px double red");
           alert("swear words");
        });
    } else {
    }
&lt;/script&gt;
</code></pre>

<p>The only way I can get this to do anything, at all, is by writing ("*").mouseover(function){ . If I'm selecting everything, the mouseover will work and the st_tabs_container will get a red border and the alerts will go off. If I try to select anything else (.i.e  $("div.st_tabs_container") ) it does not work. Can anyone explain this? I'm sure it's something simple, but I am not getting it. To make matters worse, the actual element I need to do things on click is div.st_vertical ul.st_tabs a.st_tab_active . I have had no luck writing code that selects that. Any and all wisdom would be much appreciated!</p>
