jQuery is very cool library, you can do so many things faster than normal javascript, here is one example: If you have multiple input and all of them have same class, you can sum of their value and more. “each” function does everything. Take a look at codes below.