problem with jquery .hide()
<p>Hey guys I've got a simple problem with jQuery but to be honest it don't get it what I'm doing wrong.</p>

<p>The JQuery code just looks like that</p>

<pre><code>$(".submit_twitter,.submit_url").hide();
$(".submit_url").show();
</code></pre>

<p>Now I expect to see only the submit button with class="submit_url", but instead both submit buttons are shown? ;(</p>

<p>Using just</p>

<pre><code>  $(".submit_twitter").hide();
</code></pre>

<p>instead didn't work either.</p>

<p>EDIT:</p>

<p>I'm using it like that right now:</p>

<pre><code>$(".submit_twitter,.submit_url").hide();
$(".submit_url").show();
$(".url2,.notsignedin").hide();
$(".counter").hide();
</code></pre>

<p>it works as far as it doesnt show classes "url2", "notsignedin" and "counter" but submit classes are shown. functions are called from an extern .js file which starts with:</p>

<pre><code>jQuery(document).ready(function() { .......
</code></pre>

<p>As you see it is pretty strange why some parts do work and others dont.</p>

<p>EDIT 2 - fixed:
ah found the problem myself, had another function which was using keyup event, there the input length was used to show/hide the submit_twitter button like if (len > 140) hide button, else show button, this function was responsible for showing the button all the time as the len was ofcourse less then 140 characters. </p>
