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
Guest User
Tech Writer
611
128.1k
Validation implement using jquery Validation .
Sep 30 2020 11:00 AM
How to implement Jquery Validation .I have use this code but not implememnt properly.
$(document).ready(function () {
$("#result-form").validate(); // intialize plugin
// presumably, this would be called after you dynamically create the new elements
$('input[type="text"]').each(function () {
$(this).rules('add', {
required: true,
digits: true,
messages: {
required: " Please enter a score!",
digits: " Please only enter numbers!"
}
});
});
});
In button click .I want to implement this code here.
$("#btnSend").click(function (e) {
var toEmail = $.trim($("#txtTo").val());
var body = $.trim($("#txtBody").val());
e.preventDefault();
var reportManagement = {
toEmail: $.trim($("#txtTo").val()),
body: $.trim($("#txtBody").val())
};
Reply
Answers (
4
)
who is eligible to put links in their profile?
ASP.net with C#-any emails reached in the mail id