Visual password strength checker for jQuery

Posted: January 25th, 2010 | Author: jgeiger | Filed under: jquery | Tags: | No Comments »

A simple JS file that uses regex to determine the strength of a password.

built on the work of
http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/
and
http://www.techpint.com/programming/regular-expression-check-password-strength


jQuery function to set elements to the same height

Posted: October 20th, 2009 | Author: jgeiger | Filed under: jquery | Tags: | No Comments »

I was trying to setup some boxes to be the same height using css, and it seemed that eventually one of the boxes had enough content to make the box go into scroll mode. So instead of hard coding the box height, I decided to write a jQuery function to find the tallest one, and set all the boxes to that height.

$.fn.allMatchTallestHeight = function() {
  var max_height = 0;
  elements = $(this);
  elements.each( function() {
    if ($(this).height() > max_height) {
      max_height = $(this).height();
    }
  });
 
  elements.each( function() {
    $(this).height(max_height);
  });
}

So once you have that, you can then use it like this.

$(".cloud-box-content").allMatchTallestHeight();