on off button jquery

Div on off button jquery

<section id="stage"> <div class="slider-frame"> <span class="slider-button">OFF</span> </div> </section>
$('.slider-button').toggle(function () {
    $(this).addClass('on').html('ON');
}, function () {
    $(this).removeClass('on').html('OFF');
});
on off button jquery on off button jquery Reviewed by Bhaumik Patel on 7:38 PM Rating: 5