Advertisement
LrdArc

Untitled

Jun 12th, 2017
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.     $( 'input[type="checkbox"]' ).change( function() {
  3.         var isi $( this ).val();
  4.         if ( isi == 1 ) $( 'textarea' ).attr( 'required', 'required' );
  5.         else $( 'textarea' ).attr( 'required', '' );
  6.     } );
  7. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement