Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-31-2009, 05:43 PM   PM User | #1
losporros
New to the CF scene

 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
losporros is an unknown quantity at this point
Search in specified column - tablesorter

how do the following??
Make your search by selecting the column
PHP Code:
 <script type="text/javascript">
        $(
document).ready(function() {

            $(
"#campo_filtrar").change(function () 
            {
                 $(
"#campo_filtrar option:selected").each(function () 
                  {
                        
campo_seleccionado=$(this).val();
                        
alert(campo_seleccionado);
                   });        
            });

            $(
"#tableOne").tablesorter({ debugfalsesortList: [[00]], widgets: ['zebra'] })
                        .
tablesorterPager({ container: $("#pagerOne"), positionFixedfalse })
                        .
tablesorterFilter({ filterContainer: $("#filterBoxOne"),
                            
filterClearContainer: $("#filterClearOne"),
                            
filterColumns: [0], //    Search in the selected column
                            
filterCaseSensitivefalse
                        
});
              
        });    
        
             
    
</script>              

    <table>         
...........................

                Search by: <select id='campo_filtrar'/>
                <option value='0'>Name</option>
                <option value='1'>Major</option>
                <option value='2'>Sex</option>
                <option value='3'>English</option>
                <option value='4'>Japanese</option>
                <option value='5'>Calculus</option>
                <option value='6'>Geometry</option>
                       </select>
                <input type='text' id="filterBoxOne" size='30'>      
                <img id="filterClearOne" src="_assets/img/cross.png" title="Click to clear filter." alt="Clear Filter Image" /> 
http://beckelman.net/demos/jqueryTab...g/default.aspx
losporros is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:08 PM.


Advertisement
Log in to turn off these ads.