Hello,

I am applying a masked input to an input as follows:

  jQuery(function($) {
    $("#UpdatedAt").mask("9999-99-99 99:99:99");
  });

How can I apply the same mask to various inputs without needing to
rewrite the code?

I tried the following but it did not work:

  // Form mask
  jQuery(function($) {
    $("#UpdatedAt", "#CreatedAt").mask("9999-99-99 99:99:99");
  });

Thanks,
Miguel

Reply via email to