Monday, January 3, 2011

CS101 Assignment 100% Correct Solution

You are required to Design HTML layout, validate form fields and manage fields style with the help of JavaScript.

If user will submit form without entering any value in GPA. Display warning message.    
Change field background color to pink.                                                                        
On clicking ok reset layout to initial state (White background, pointer focus on GPA field).

If user will submit form with alphabetic value. Display warning message.                                                
Change field background color to red.                                                              
On clicking ok reset layout to initial state (White background, pointer focus on GPA field). 

If user will submit form with value less than 1 and greater than 4. Display warning message.                   
Change field background color to light sky blue.                                               
On clicking ok reset layout to initial state (White background, pointer focus on GPA field). 

If user will submit form with value > = 1 and < 2. Display message “Fair :: You got D grade”.            
If user will submit form with value > = 2 and < 3. Display message “Good :: You got C grade”.                      
If user will submit form with value > = 3 and < 4. Display message “Very Good :: You got B grade ”.
If user will submit form with value equal to 4. Display message “Excellent :: You got A grade ”.         

Change field background color to lime.              

If value is > = 1 and <= 4, on clicking ok jump to www.vu.edu.pk
For any other value or empty field must not jump to www.vu.edu.pk

Hints:
1.      For pink color use keyword pink.
2.      For red color use keyword red.
3.      For light sky blue color use keyword lightskyblue.
4.      For lime color use keyword lime.
5.      To change field background color use backgroundColor property of style sheet in JavaScript.
6.      To set pointer focus on GPA field use JavaScript function focus.

100% Correct Solution:-


Please do make changes in these assignment otherwise every one who copy this assignment as it is will awarded zero marks 

NOTE: - These Assignments OR Quiz are just for idea, so kindly don't copy it, after viewing it make your own. Thanks We always try our best to upload 100% correct solution BUT it is requested that you kindly review it before submission, please BEST OF LUCK, Thanks to those students those send me Assignments and quizzes. If you have any Assignment and quiz kindly send at jamilbookcenter@yahoo.com

No comments:

Post a Comment