problem in if & else?
<p>why don't work <code>if(length_pa &gt;= 16){ ...</code> after select value "2" in select box and don't work <code>if(length_pa == 0){...</code> after select value "all" in select box???<br>
[with change length(number) in <code>"var length_pa" $('#pagination a')</code> don't work "show" and "hide" for <code>#prev_pag, #next_pag</code>.] <p>
<strong>EXAMPLE:</strong> <a href="http://www.binboy.gigfa.com/admin/accommodation/show" rel="nofollow">See This</a></p>

<pre><code>var length_pa = $('.pagination a').size();
    if(length_pa &gt;= 16){
        $('.prev_pag, .next_pag').show();
    }else{
        $('.prev_pag, .next_pag').hide();
        $('.pagination').css('float','none')
    }
    if(length_pa == 0){
        alert('0000000000')
        $('.hesar_number').css('display','none');
    }
</code></pre>

<p>what do i do?</p>

<p><strong>Explanation:</strong> <br>
If that value <code>2</code> be select, <code>.prev_pag, .next_pag</code> must show<br>
If that value 'all' be select, <code>.hesar_number</code> must hide(<code>'display','none'</code>)<br>
But these does not happen... why!?</p>
