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
SeethaPartha
NA
89
30.7k
Redirect to another html page using jquery
Mar 9 2018 3:58 AM
i have a design bootstrap template. I want to redirect from login.html page to index.html. But it is nor working in jquery.
Please see below code i tried.
<button type="submit" id="submit" onclick="checkcredential()" class="btn">Sign in!</button>
function checkcredential() {
if ($('#l-form-3-username').val() == "" || $('#l-form-3-password').val() == "") {
alert("Please enter valid Credentaials")
}
else if ($('#l-form-3-username').val() != "admin" || $('#l-form-3-password').val() != "admin") {
alert("Invalid Credentials!!!")
}
else if ($('#l-form-3-username').val() == "admin" || $('#l-form-3-password').val() == "admin") {
window.location.href("index.html")
}
}
Kindly suggest some idea. Its Urgent.
Reply
Answers (
3
)
bootstrap multiselect : TypeError: $(…).multiselect is not a
jQuery number counter animation