jQuery(document).ready(function () { "use strict"; var options = {}; options.common = { onLoad: function () { $('#messages').text('Start typing password'); } }; options.ui = { bootstrap2: true, showErrors: true }; $(':password').pwstrength(options); });