jquery - How do i call the same function with different div ids?
        Posted  
        
            by 
                Nahom
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nahom
        
        
        
        Published on 2010-12-28T06:40:45Z
        Indexed on 
            2010/12/28
            6:53 UTC
        
        
        Read the original article
        Hit count: 206
        
Hi,
I have two divs with different ids (#washing,#bleaching). How can i use a function for different id's. I have tried adding both the ids together $("#washing, #bleaching"), but the function is not working correctly on the divs. Can anyone please help me...
Here is the code
    $(function() {
    $("#washing").paginate({
        count: 10,
        start: 1,
        display: 7,
        border: true,
        border_color: '#fff',
        onChange: function(page) {
            $('._current', '#paginationdemo').removeClass('_current').hide();
            $('#p' + page).addClass('_current').show();
        }
    });
});
© Stack Overflow or respective owner