Advertisement
vfontjr

multi-select-add-class.php

Aug 24th, 2022
1,225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <script>
  2. jQuery(document).ready(function($) {
  3.     "use strict";
  4.     $("#field_1f2ra-0, #field_vufrc-0, #field_kpv4b-0, #field_kpv4b-1, #field_kpv4b-2, #field_4tih-0, #field_kv3rj-1, ").on(change, function() {
  5.         if ( $(this).prop("checked") ) {
  6.             $(this).addClass("stay-black");
  7.         } else {
  8.             $(this).removeClass("stay-black");
  9.         }
  10.     });
  11. });
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement