We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 03
Semester: Fall 2012
Introduction to Computing-CS101


Total Marks: 20


Due Date: 08/01/2013



Please read the following instructions carefully before submitting assignment:


  • You will submit your assignment before or on due date on VU-LMS.
  • Assignment should be completed by your own efforts it should not be copied from internet, handouts or books.
  • You should submit your HTML File via assignment interface at VU-LMS.
  • Assignment sent via Email will not be replied and accepted/graded in any case.
  • If the submitted assignment does not open or file is corrupt, it will not be graded.
  • You will submit solution only in HTML (.html or .htm) File.




To understand the fundamentals of web development using HTML and JavaScript.



For any query about the assignment, contact at cs101@vu.edu.pk

Assignment Questions


Question:                                                                                                                               Marks 20     


Make a registration form page using html and JavaScript. Your page’s output should look like as given below.


On fields you will apply checks according to details given below,  For example using JavaScript you will apply Check on User Id,  it should be of at least 5 characters and at most of 7 characters and should not be empty.


Script should check the fields one by one when you click submit button.


Clicking on reset button will clear all the fields. Hit: No need  to use JavaScript to clear the fields


Value of  action attribute of form will be http://www.vu.edu.pk/


Check 1 (on userid)




Check 2 (on Password)




Check 2 (on User Name)







Check 3 (on Country)  (Note: Your country list can contain 5 to 6 countries)


Check 4(on Email)





Check 5 (on Gender Option)







Check 6 (on Form submission)




  • You have to develop the assignment in Notepad.


  • Your country list will contain 5 or 6 countries. No need to mention all the countries in the world.


  • You will submit only HTML file (.html). None of the other files will be acceptable.


+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 2996


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

PLease Discuss here

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. 

So, Start it now, replies here give your comments according to your knowledge and understandings....


cs 101 assignment 3 solution plz with java script


i have done it

This is only HTML. Soon javaScript i upload and complete file

<title>Ali Raza Marchal || +923008169924</title>

<h1>Registration Form</h1>
<form action="" method="post" name="mailToVU" id="mailToVU">
User ID:
<input type="text" name="textfield" id="textfield">
<input type="text" name="textfield2" id="textfield2">
Name:  <br>
<input type="text" name="textfield3" id="textfield3">
<select name="select" id="select">
  <option selected>Select a Country</option>
  <option value="pakistan">Pakistan</option>
  <option value="kashmir">The State of Azad Jammu and Kashmir</option>
  <option value="india">India</option>
  <option value="afg">Afganistan</option>
  <option value="KSA">Kingdom of Saudi Arabia</option>
  <!--This code is write by Ali Raza Marcha Student of BSCS[Hons]
  Virtual Universtiy of Pakistan +923008169924
<input type="text" name="textfield4" id="textfield4">
  <input type="radio" name="RadioGroup1" value="male" id="RadioGroup1_0">
  <input type="radio" name="RadioGroup1" value="female" id="RadioGroup1_1">
<input type="submit" name="submit" id="submit" value="Submit">
<input type="reset" name="reset" id="reset" value="Reset">    


There r sm mistaks.

lik u r using <input type="text"> for pasword.

Sorry Dear in This Solution u didnt add Java scriprt  so correct ur mistakz AND Also have some mistak

no checks there

hello can we do this work in the the table form

This Assignment is From Lecture 23 , 24 25 ..... If you read lecture discussions you will be able to solve... Now here i sharing 

registration form according to question... you work on it 

<html lang="en"><head> 
<meta charset="utf-8"> 
<title>Assignmnet No.03 registration form by www.vustudents.ning.com </title>
<body onload="document.registration.userid.focus();"> 
<h1>Registration Form</h1> 
<form name='registration' onSubmit="return formValidation();"> 
<li><label for="userid">User id:</label></li> 
<li><input type="text" name="userid" size="12" /></li> 
<li><label for="passid">Password:</label></li> 
<li><input type="password" name="passid" size="12" /></li> 
<li><label for="username">Name:</label></li> 
<li><input type="text" name="username" size="50" /></li> 
<li><label for="address">Address:</label></li> 
<li><input type="text" name="address" size="50" /></li> 
<li><label for="country">Country:</label></li> 
<li><select name="country"> 
<option selected="" value="Default">(Please select a country)</option> 
<option value="AF">Pakistan</option> 
<option value="AF">Inida</option> 
<option value="AF">England</option> 
<option value="AF">UAE</option> 
<option value="AF">Saudia</option> 
<option value="AF">Australia</option> 
<option value="AL">Canada</option> 
<option value="DZ">India</option> 
<option value="AS">Russia</option> 
<option value="AD">USA</option> 
<li><input type="text" name="zip" /></li> 
<li><label for="email">Email:</label></li> 
<li><input type="text" name="email" size="50" /></li> 
<li><label id="gender">Sex:</label></li> 
<li><input type="radio" name="sex" value="Male" /><span>Male</span></li> 
<li><input type="radio" name="sex" value="Female" /><span>Female</span></li> 
<li><input type="submit" name="submit" value="Submit" /></li>
<li><input type="reset" name="reset" value="reset" /></li> 

Simple paste this code in note pad and save in .html format


Latest Activity

© 2020   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service