Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $( 'input[type="checkbox"]' ).change( function() {
- var isi $( this ).val();
- if ( isi == 1 ) $( 'textarea' ).attr( 'required', 'required' );
- else $( 'textarea' ).attr( 'required', '' );
- } );
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement