Articles of level

Here is a list of attributes that builds a case for why you should use jQuery:

  • It is open source, and the project is licensed under an MIT and a GNU General Public License (GPL) license. It is free in multiple ways!
  • It is small (18 KB minified) and gzipped (114 KB, uncompressed).
  • It is incredibly popular, which is to say it has a large community of users and a healthy amount of contributors who participate as developers and evangelists.
  • It normalizes the differences between web browsers so that you do not have to.
  • It is intentionally a lightweight footprint with a simple yet clever plugin architecture.
  • Its repository of plugins is vast and has seen steady growth since jQuery is release.
  • Its API is fully documented, including inline code examples, which in the world of JavaScript libraries is a luxury.

Functions are a fundamental building block of JavaScript programs; they provide a way that we can put small pieces of functionality in a neatly-wrapped package. For example, consider a function that adds two numbers:
function(a, b) {
  return a + b;
}

This function takes two arguments, a and b. It adds them together, and returns the result.

The jQuery fadeIn() method allows to fade-in elements of a website. For example, a <div>, <p> or some other element that may contain text, images or other content. The fadeIn jQuery method slowly changes the opacity of the given element from hidden to visible.

The fadeOut() method fades out the visible elements of a website, for example <div>, <p> etc. that may contain the text, images or other content.

The fadeOut method slowly changes the opacity of the given element from visible to hidden.

The jQuery hide() method hides the specified HTML elements like DIV, paragraphs or other elements. The hide jQuery method can be used to make user’s experience better in order to provide them facility what to show and what to not in a website besides other uses.

The toggle() method is used to toggle between show and hide for selected HTML elements. If elements are hidden then toggle method will show the hidden selected elements and vice versa.

The jQuery show() method is used to show the hidden elements of HTML in the web document. Note that, the show method would not show elements which property are set to Hidden by visibility property, i.e. visibility: hidden in CSS.
The elements that are hidden by using the hide() method or with CSS property display: none; can be shown by using the show() method.

The jQuery keypress event is triggered after a key is pressed in the keyboard. The keypress method will be used to perform any action or run a function as the keypress event occurs in your web document. The keypress event occurs when a key is pressed down, so it is quite similar to the keydown event. However, there are differences between the two – for example pressing a few keys will trigger only the keydown event like ALT, CTRL, ESC etc.
Also, the keypress event returns different values for lowercase and uppercase letters, whereas the keyup and keydown return the same. So it is useful to use keypress event in case you have to differentiate between lowercase and uppercase keys.
The keypress method can be useful for many scenarios, for example, in passwords boxes only allowing letters, numbers and a few special characters while notifying users if a specific key is not allowed. In that case, rather than sending a request to the server and then checking the input by the visitor, you can check it at the client side by using the jQuery keypress.

The keyup event is triggered after a key is released in the keyboard. The jQuery keyup method will be used to perform any action or run a function as the keyup event occurs in your web document.
Note that, the jQuery keyup event returns the same values for lowercase and uppercase letters on keyup, whereas the keypress returns different for ‘a’ and ‘A’, for example.

 jQuery submit method 
As a web developer, one needs to use HTML forms in many scenarios to collect the user information for different purposes. As a user clicks on the Submit button, a Submit event occurs.The jQuery provides the submit() method to handle the submit event where a function can be attached to perform certain actions e.g. checking the form fields before submitting the form to the server.

Displaying 1 of 3Next
1 2 3
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*