Use jQuery option to set tips instead of html attribute.Set default tips for required, max number.