Edit in JSFiddle

  Include the password control JS somewhere on your page, 
  then add the enz-enable attribute to your password input element
<script type="text/javascript" src="https://cdn.enzoic.com/js/enzoic.min.js"></script>

<h4 class="text-center">
  Example Signup Form Using Enzoic
<p class="text-center offset-1">
Highlight the "Choose a Password" field to see the Password Strength Meter in action.
<form id="signupForm" action="https://cdn.enzoic.com/demosignupsuccess.html" class="offset-4 demo-form pp-container text-center">
    <div class="row">
      <div class="col-md-12">
        <input type="text" placeholder="Your Email Address" />
    <div class="row">
      <div class="col-md-6">
        <!-- to add Enzoic to this input, add the enz-enable attribute to the markup -->
        <input type="password" name="password" placeholder="Choose a Password"
          enz-enable enz-theme="default" enz-min-password-strength="4" 
          enz-css-success-class="enz-success" enz-css-fail-class="enz-fail" />
      <div class="col-md-6">
        <input type="password" placeholder="Confirm Password" />
    <div class="btn-group text-center">
      <button type="submit" class="btn btn-md btn-primary">Test Submit</button>
      <p class="offset-1 small">
        This is an example to show the Password Strength Meter in action.<br/>You're not signing up for an account.
    <div id="resultToast" class="result-toast">
      <span class="loader"></span>
      <span id="resultToastMsg" class="msg">...</span>
/* handler for the signup form's onsubmit event */
function onSignupFormSubmit() {
    Decide what your minimum allowable password score is and disallow if less.
    You can check the current score using the CurrentPasswordScore property.
  if (Enzoic.currentPasswordScore < Enzoic.PASSWORD_STRENGTH.Strong) {
    showToast('Entered password is not strong enough.');
    return false;

  return true;

function showToast(msg) {
  var toastEl = document.getElementById('resultToast');
  var toastMsg = document.getElementById('resultToastMsg');
  toastMsg.innerHTML = msg;
  toastEl.className += ' fail';

  // hide toast
  setTimeout(hideToast, 2000);

function hideToast() {
  var toastEl = document.getElementById('resultToast');

  toastEl.className =
    toastEl.className.replace('fail', '');

document.getElementById('signupForm').onsubmit = onSignupFormSubmit;
   example usage of the Enzoic CSS classes to show visual 
   indicators for password acceptability.  The enz-success and enz-fail 
   CSS classes get added automatically to the password input control when a 
   password is classified by Enzoic.  See the documentation for more details.

input.enz-fail {
  border-color: #b94a48 !important;
  background: url(https://cdn.enzoic.com/images/warning.png) right 5px center no-repeat;

input.enz-success {
  border-color: #32cd32 !important;