C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Javascript-Check Indian Zipcode.
WhatsApp
Ghanashyam Nayak
4y
51.7
k
0
0
25
Blog
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
>
<html>
<head>
<title>Sample Code</title>
<script type=
"text/javascript"
>
function
CheckIndianZipCode(b)
{
var
a = /(^\d{6}$)/;
if
(a.test(b))
{
alert(
"Your Entered Zip Code Is Valid."
)
}
else
{
alert(
"Your Entered Zip Code Is Not Valid."
)
}
};
</script>
</head>
<body bgcolor=#00ff00 alink=blue vlink=blue>
<FORM name=
"windowEvent"
>
Enter String : <input type=
"text"
name=
"txtOriginal"
/><br>
<input type=
"button"
value=
"Check"
name=
"btnIndianZipCode"
onClick=
"CheckIndianZipCode(txtOriginal.value);"
/>
</FORM>
</body>
</html>
Javascript-Check Indian Zipcode.
Recommended related topics
Membership not found