Notes
Notes - notes.io |
<html>
<head>
<h1 style="text-align: center;"><b>Student Details</b></h1>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
function showdata(){
var name,usn,gen=[],selectedval;
name=$('#name').val();
usn=$('#usn').val();
var selectedval = $('#idselect').val();
$('div input[type=radio]').each(function(){
if($(this).is(":checked")){
gen.push($(this).attr('value'));
}
});
$('#idselect').change(function(){
selectedval = $('#idselect').val();
alert(selectedval);
});
var info = {
name: name.val(),
usn: usn.val(),
gen: gen.val(),
branch: selectedval.val(),
};
$.ajax({
type: 'POST',
url:
data: info,
});
}
</script>
</head>
<body>
<script>
function validateform(){
var name=document.myform.name.value;
var password=document.myform.password.value;
if (name==null || name==""){
alert("Name can't be blank");
return false;
}else if(password.length<6){
alert("Password must be at least 6 characters long.");
return false;
}
var num=document.myform.num.value;
if (isNaN(num)){
document.getElementById("numloc").innerHTML="Enter Numeric value only";
return false;
}
var x=document.myform.email.value;
var atposition=x.indexOf("@");
var dotposition=x.lastIndexOf(".");
if (atposition<1 || dotposition<atposition+2 || dotposition+2>=x.length){
alert("Please enter a valid e-mail address n atpostion:"+atposition+"n dotposition:"+dotposition);
return false;
}
}
</script>
<style>
.content {
max-width: 500px;
margin: auto;
padding: 10px;
}
body {
background-color: lightblue;
}
.userName
{
margin: 5px 20px 0px 38px;
}
.usn{ margin: 21px 0px 0px 75px ; }
.Name { margin: 21px 0px 0px 61px; }
.male { margin: 21px 0px 0px 60px;
color: black;}
.UNIVERSITY{
margin: 25px 0px 0px 0px;
}
.brr
{margin: 20px 0px 0px 65px}
</style>
<div class="content">
<b>Name:</b><input type="text" id="name" placeholder="enter name" class="Name">
<br><br>
<b>Usn:</b><input type="usn" id="usn" placeholder="enter usn" class="usn"maxlength="10"><br>
<br>
<br>
<b>Gender:</b>
<a class="male"><input type="radio" name="gender" value="male"> male</a>
<input type="radio" name="gender" value="female"> female
<br>
<div class="UNIVERSITY" name="BRANCH"><b>Branch:</b>
<div class="brr">
<select placeholder="Select" class="btn btn-primary data-toggle" id="idselect">
<option value="cse" name="br" value="cse">CSE</option>
<option value="ise" name="br" value="ise">ISE</option>
<option value="ece" name="br" value="ece">ECE</option>
</select></div>
</div><br>
<br>
<br>
<button id="submit" class="btn btn-primary" onclick="showdata();">submit</button>
</div>
</body>
</html>
|
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team