Advertisement
LrdArc

Untitled

Jul 21st, 2016
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <script>
  2. $( 'select[name=perusahaan]' ).on( 'change', function() {
  3. var selected = $( this ).val();
  4. if ( selected == 'lainnya' ) $( this ).after( '<input type="text" name="perusahaan" id="jess">' );
  5. else $( '#jess' ).remove();
  6. } );
  7. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement