I want to know if all characters in a string are same. I am using it for a Password
so that i tell the user that your password is very obvious.
I have crated this
var pass = $("#text_box").val();
$("#text_box_span").html('password must be atleast 6 characters');