Learn JavaScript trim method to remove spaces with 2 examples

Learn JavaScript trim method to remove spaces with 2 examples

Purpose of trim in JavaScript The JavaScript trim method is used to remove the leading and trailing spaces in strings of JavaScript. For example, consider the following sentence:

  The spaces before “This” and after the word “tutorial” will…

Demos and Full Guide
A Bootstrap multi item carousel template

A Bootstrap multi item carousel template

Multi item Bootstrap carousel template This slider template is the continuation of HTML 5/ CSS 3 product template that was used in the previous part. In this template, I have displayed items in the Bootstrap multi-item carousel by using the…

Demos and Full Guide
jQuery toggleClass

jQuery toggleClass

How to use toggleClass method The toggleClass method is used to add or remove class(es) in the specified HTML elements. If the class is already applied, it will be removed at first action. If a class does not exist in…

Demos and Full Guide
Custom and fancy JavaScript prompt alerts

Custom and fancy JavaScript prompt alerts

The prompt alert The prompt alerts are those where you ask users to enter something before proceeding. The JavaScript prompt alert can be created by using:

  The prompt keyword is followed by the text which is shown as…

Demos and Full Guide