• Resolved andyt1980

    (@andyt1980)


    Hi,
    Is there a way to add a class to the button once clicked so that I can style it differently?.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author edmon.parker

    (@edmonparker)

    Hi @andyt1980,

    Please add this code to your read more custom JS option.

    jQuery(window).bind('YrmOpen', function() {jQuery('.yrm-btn-wrapper').addClass('yrm-open').removeClass('yrm-close')}); jQuery(window).bind('YrmClose', function() {jQuery('.yrm-btn-wrapper').addClass('yrm-close').removeClass('yrm-open')});

    After clicking read more button it will be added yrm-open CSS class.

    • This reply was modified 4 years, 1 month ago by edmon.parker.
    Thread Starter andyt1980

    (@andyt1980)

    Thank you works great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Onclick Event’ is closed to new replies.