daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Sep 18th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1.    <script>
  2.         $(document).ready(function () {
  3.            var ratingLabels = $('#ctrl_rating label');
  4.            if (!ratingLabels.length) {
  5.                return true;
  6.            }
  7.  
  8.            ratingLabels.each(function (i, e) {
  9.                var radioBox = e.control,
  10.                    firstClick = true;
  11.  
  12.                $(e).on('click', function () {
  13.                    if (firstClick || !radioBox.checked) {
  14.                        firstClick = false;
  15.  
  16.                        return true;
  17.                    }
  18.  
  19.                    radioBox.checked = false;
  20.                    console.log(firstClick, radioBox.checked);
  21.                });
  22.            });
  23.         });
  24.     </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top