JAVASCRIPT   18
importer
Guest on 18th September 2023 07:53:35 AM


  1. jQuery(function(a) {
  2.     var b = a("input[name=mpsl_http_auth]"),
  3.         c = a("input[name=mpsl_http_auth_login], input[name=mpsl_http_auth_password]"),
  4.         d = a(".need-mpsl_http_auth");
  5.     b.on("change", function(a) {
  6.         b.is(":checked") ? (c.removeAttr("disabled").attr("required", "required"), d.show()) : (c.removeAttr("required").attr("disabled", "disabled"), d.hide())
  7.     })
  8. });

Raw Paste

Login or Register to edit or fork this paste. It's free.