Advertisement
kref

jquery - switch

Jan 21st, 2022
735
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // kdyz je aktivni (coz je without????)
  2. if (JQuery(this).hasClass('.blabla--active')) {
  3. // zobrazime todle
  4. JQuery('.div-classa-tlacitka-ANO').show();
  5. JQuery('.div-classa-tlacitka-NE').hide();
  6.  
  7. } else {
  8. // jinak zobrazime todle
  9. JQuery('.div-classa-tlacitka-NE').show();
  10. JQuery('.div-classa-tlacitka-ANO').hide();
  11. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement