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
66.8k
js question
Mar 8 2015 2:42 PM
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Login</title>
<script type="text/javascript">
function check()
{
var check = document.form1.terms;
if(!check.checked)
{
alert("you have to select somthing to proceed further");
return false;
}
if(check.checked)
{
alert(" you select " + check.value);
return true;
}
return true;
}
</script>
</head>
<body>
<h1>Login Form</h1>
<form method="post" onsubmit="check()" name="form1">
Username: <input type="checkbox" name="terms" >hello<br>
<input type="checkbox" name="terms">good morning<br>
<input type="checkbox" name="terms">say bye<br>
<input type="submit" value="Submit">
<input type="reset" value="Reset Form">
</p>
</form>
</body>
</html>
i want my code to return value which i select .this sould done by an alert box
Reply
Answers (
2
)
how to show user location marker with custom marker
how to fetch data from json in javascript.....