In this article we show you how to create simple calculator using jquery.This calculator is created with basic code such as if-else ladder and switches to show you how to perform basic operation in a webpages.Thank you enjoy the post and give your feed back.
Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts
Sunday, 6 December 2015
jquery
In this article we show you how to create simple calculator using jquery.This calculator is created with basic code such as if-else ladder and switches to show you how to perform basic operation in a webpages.Thank you enjoy the post and give your feed back.
How To Create Calculator In Web Page Using JQuery
In this article we show you how to create simple calculator using jquery.This calculator is created with basic code such as if-else ladder and switches to show you how to perform basic operation in a webpages.Thank you enjoy the post and give your feed back.
Friday, 27 November 2015
jquery
Reading long article its very irritating to scroll up whole page using scroll bar I recommend you to add simple back to top plugin in you website adding below code.
How To Create Animated Back To Top PlugIn Using JQuery
Reading long article its very irritating to scroll up whole page using scroll bar I recommend you to add simple back to top plugin in you website adding below code.
How To Scroll Up Webpage On A Click Using Jquery:
As we know that jquery has various animations properties by using one of them we can do our task.Here is a syntax of method whic we are going to used in our example.
$('selector').animate({scrollTop : position},time in millisec)
CODE:
Live Demo
Thursday, 26 November 2015
jquery
In this post we are going to show you how to give new look to your website each time when new visitor visits your website this can be done using simple jquery ,javascripting and css code.
How To Automatically Change Background Colour Of Website Using JQuery
In this post we are going to show you how to give new look to your website each time when new visitor visits your website this can be done using simple jquery ,javascripting and css code.
How To Automatically Generate New Background Color:
This can be done using simple logic we have to generate three random numbers between 0 to 256 to create and colour in RGB format we can generate random number by following code.
var r = Math.floor((Math.random() * 255) + 1);
Then by using below code we can change the background colour of any component in our website.
$("body").css("background",'rgb('+r+','+g+','+b+')');
On every new visit or refresh it will change background colour of website.Thats it enjoy the code and must give your feedback.
How To Automatically Changed Fixed Background Colour:
By using below code we can generate random colours of our own choice so when ever visitor refresh your website he gets new look.
var col = ["#ff8080","#80ff80","#8080ff","#ff80df"];
var r = Math.floor((Math.random() * 3) + 1);
$("body").css("background",col[r]);
Thats it thankyou enjoy the code and must give your feedback.
Wednesday, 25 November 2015
jquery
How To Validate HTML5 Forms Using Jquery
Validation is a process to check whether the user is filling right information or wrong in form by using this method we can stop user filling wrong or empty information in form.This process can be done using jquery and javascripting in this example we have shown how to validate empty field,how to validate email address and how to validate password strength.You can also use html required attribute to validate your form.
OUTPUT:
CODE:
Live Demo
Subscribe to:
Posts (Atom)