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
rahul patil
NA
160
8.5k
how to call second page after the filled the input field?
May 15 2020 6:16 AM
I want to call signup javascript page after the user filled the form
Now I m facing 2 issue
when I filled only one input field and press next button then coming to the second page
when I filled all the input field and press the next button then not coming to the second page
signup.html
<!DOCTYPE html>
<html>
<head>
<meta charset=
"UTF-8"
/>
<title></title>
<script src=
"https://code.jquery.com/jquery-3.4.1.min.js"
type=
"text/javascript"
></script>
<script type=
"text/javascript"
>
function
validatation() {
debugger
if
($(
"#txtfname"
).val() ==
""
) {
debugger
alert(
"Provide a first name"
);
$(
"#txtfname"
).focus();
return
false
;
}
if
($(
"#txtmname"
).val() ==
""
) {
debugger
alert(
"Provide a middle name"
);
$(
"#txtmname"
).focus();
return
false
;
}
if
($(
"#txtlname"
).val() ==
""
) {
debugger
alert(
"Provide a last name"
);
$(
"#txtlname"
).focus();
return
false
;
}
return
true
;
}
</script>
<script src=
"signup.js"
></script>
signup.js
$(document).ready(
function
() {
$(
'#btnnext'
).click(
function
(event) {
sessionStorage.clear();
sessionStorage.setItem(
"firstName"
, $(
"#txtfname"
).val());
sessionStorage.setItem(
"lastName"
, $(
"#txtlname"
).val());
sessionStorage.setItem(
"middleName"
, $(
"#txtmname"
).val());
$(
"#txtPersonalInformation"
).load(
"ContactInformation.html"
);
});
});
what I want to
when user filled the all input field then I call to signup javascript
when user filled only one input field then not call to signup javascript
In short when user filled the form then calling to the next form
Reply
Answers (
2
)
How to use TFS using visual studio 2017
How can i pass multiple radio button values to controller?