SHARE
TWEET

Untitled

a guest Sep 14th, 2017 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function changeCheck(){      
  2.       $('.questionBlock').on('change', 'input[type=radio][name=gender]', function() {  
  3.         var changeOption = $(this).closest('.radioArea').attr("data-id");
  4.         console.log(changeOption);
  5.  
  6.         if (this.value == 'Image') {
  7.             $('.textArea').show();
  8.             $('.browseArea').hide();
  9.         }
  10.         else if (this.value == 'Text') {
  11.             $('.textArea').hide();
  12.             $('.browseArea').show();
  13.         }
  14.  
  15.       });
  16.  
  17.     }
RAW Paste Data
Top