editdoc.js 420 B

1234567891011121314151617
  1. $(function()
  2. {
  3. $('input[name="type"]').change(function()
  4. {
  5. var type = $(this).val();
  6. if(type == 'text')
  7. {
  8. $('#contentBox').removeClass('hidden');
  9. $('#urlBox').addClass('hidden');
  10. }
  11. else if(type == 'url')
  12. {
  13. $('#contentBox').addClass('hidden');
  14. $('#urlBox').removeClass('hidden');
  15. }
  16. });
  17. })