How to make jQuery condition?
<p>I am doing a slide show, for that i am checking the slide number. there two options show and hide, for that i wrote this condition. is this correct ? not it's through the error.</p>

<pre><code> var onSlide_ag = (onSlide_ag == 1) ? $('id="a_prev"').hide() : $('id="a_prev"').show();
</code></pre>

<p>any one correct it? or let me know the mistake with i did..?</p>

<p>This is actually need to use in the  if conditions, but i used the short way to make this out put.</p>

<p>thanks in advance!</p>
