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
umair mohsin
1.3k
387
64.5k
Validate dropdown in bootstrap multistep form
Jan 25 2020 2:41 AM
my app. is a multistep form in a bootstrap Modal i want to validate dropdown if option is not selected.i have tried unobtrusive but it is not working as the form is multistep and data is not posting to server at each step.
i have validated textboxes and dropdowns too but dropdowns got null after jquery client side validation.i am enclosing the clip and need help if anyone has the solution for this. these dropdowns are populate through database code and when validate through jquery code these dropdwns are empty.Please help me regarding this.
validation code is something like this..............
$(document).ready(function () {
$(".step3").click(function () {
var index=$(".form-control");
if ($(".form-control").text("Select Gender"))
{
$("#forgen").text("*");
$("#foredu").text("*");
return false;
}
else {
$(".error").text(" ");
$("#myModal3").modal();
return true;
}
})
});
Note.this is MVC Based Application.
Attachment:
Before.rar
Reply
Answers (
1
)
How to make your controller functional to model and view?
How to Hide Button In Gridview After Click