You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
542 B

  1. $(function() {
  2. function updateForm() {
  3. var mType = $('input[name=mtype]:checked').val();
  4. if (mType == "stream") {
  5. $("#z-to-label").text("Stream Name");
  6. $("#z-to-help").text('Example: "general"');
  7. }
  8. if (mType == "private") {
  9. $("#z-to-label").text("User's Email");
  10. $("#z-to-help").text('Example: "[email protected]"');
  11. }
  12. }
  13. // Update form labels when user clicks on radio buttons
  14. $('input[type=radio][name=mtype]').change(updateForm);
  15. });