getting atrr each selector after clicked on it?
<p>why don't work this js code? after click:<br>
output <code>form #find_sc</code> is "true". <br>
output <code>.pagination a</code> is "undefined" . <br>
"there is no" output in <code>form select option</code> (In this case the alert is not displayed).</p>

<pre><code>$('.pagination a, form #find_sc, form select option').live('click', function(e) {
    e.preventDefault();
    if($('.pagination a')){
    var dirc = $(this).attr('href'); // this is a link tag &lt;a&gt;&lt;/a&gt;
    }
    if($('form #find_sc')){
    var dirc = $(this).attr('class'); // this is a button tag &lt;button&gt;&lt;/button&gt;
    }
    if($('form select option')){
    var dirc = $(this).attr('class'); // this is a selectbox. i want after click on option in it, was active and attr class in selectbox. &lt;select&gt;&lt;option&gt;&lt;/option&gt;&lt;/select&gt;
    }
    alert(dirc);
        $.get( dirc, function(html) {            
            //$('#ok').append(html);
            $('#num_count').replaceWith( $(html).find('#num_count') );
            $('tr#paginate').replaceWith( $(html).find('tr#paginate') );
            $('.pagination').replaceWith( $(html).find('.pagination') );           
            });
        return false;
    });
</code></pre>

<p>What is your solutions or suggestions?<p></p>

<p><strong>EDIT:</strong> please click on following images in my example<p>
<code>form #find_sc</code> --is this--> <img src="http://i.stack.imgur.com/p4RIE.gif" alt="enter image description here"><br>
<code>.pagination a</code> --is this--> <img src="http://i.stack.imgur.com/iySKR.gif" alt="enter image description here"><br>
<code>form select option</code> --is this--> <img src="http://i.stack.imgur.com/ogh5z.gif" alt="enter image description here"><p> -> [i want after click on option in select, was active and attr class in selectbox.]
<strong>EXAMPLE:</strong> <a href="http://www.binboy.gigfa.com/admin/accommodation/show" rel="nofollow">my problem in here</a></p>
