using script-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">
function checkusername(value) {
var codes = ['admin', 'adm', 'administrator', 'cluster', 'clu'];
if ($.inArray(value.toLowerCase(), codes) > -1) {
alert("Invalid userid ! Please try another");
return false;
}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js">
function checkusername(value) {
var codes = ['admin', 'adm', 'administrator', 'cluster', 'clu'];
if ($.inArray(value.toLowerCase(), codes) > -1) {
alert("Invalid userid ! Please try another");
return false;
}
No comments:
Post a Comment