Slide toggle from right to left and left to right

jQuery Slide DIV Content from Left to Right

$(".myButton").click(function () {

    // Set the effect type
    var effect = 'slide';

    // Set the options for the effect type chosen
    var options = {
        direction: $('.mySelect').val()
    };

    // Set the duration (default: 400 milliseconds)
    var duration = 500;

    $('#myDiv').toggle(effect, options, duration);
});
Slide toggle from right to left and left to right Slide toggle from right to left and left to right Reviewed by Bhaumik Patel on 8:21 PM Rating: 5