TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dr.Ajay Kashyap
NA
521
283.8k
validation for 5 text box have different values or not
Feb 6 2017 4:23 AM
hello Sir ...
i have minmum 1 and maximum 5 textbox and textbox are created dynamic when user click on add button ...now when user click on submit button i want to validate that every textbox have different value if there is same value then show alert same Value not allow.
this all i want using javascript / jquery.
I am Storing The Value Like This ... Now How To Validate
var Category1 = $("input[name='[0].Category']").val();
var Category2 = $("input[name='[1].Category']").val();
var Category3 = $("input[name='[2].Category']").val();
var Category4 = $("input[name='[3].Category']").val();
var Category5 = $("input[name='[4].Category']").val();
Reply
Answers (
1
)
How to assign id to dynamic create textbox In Mvc
JS Prompt box - OnCancel Click handle