As per your requirement you can set weak, midium or strong in that password field
Take one criteria length.
weak >if password length is less than 4
medium>if password length is greater than 4 and less than 7
Strong >if password length is greater than 7
if($("#passwordId").length()<4)
{
alert("Weak password");
}
else if($("#passwordId").length()>4 && $("#passwordId").length()<7)
{
alert("medium password");
}
else
{
alert("strong password");
}