Welcome Guest, Not a member yet? Register   Sign In
Problems with jquery and ci
#2

[eluser]Rolly1971[/eluser]
you should not need to call another function to toggle the div.

Code:
$(document).ready(function() {

    $('.buttons').click(function(){
        var divId = $attr('href');
        $('#'+divId).show("slow").siblings().hide("slow");
        return false;
    });

});


Messages In This Thread
Problems with jquery and ci - by El Forum - 10-04-2012, 06:07 AM
Problems with jquery and ci - by El Forum - 10-04-2012, 08:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB