Find if a string contains a substring in JavaScript!


This post will explain how to find a substring in a string using pure JavaScript. Let’s see how can we achieve this.

The above script will show an alert ‘true’ because sub-string ‘tin’ is present in the string ‘testing’.… Continue Reading


How to check if an element is hidden in jQuery?


There are many ways to check if an element is hidden using jQuery. I will list out mostly used methods in this post. Let’s say the element has id=”test”. Then the code will be, Method 1: 

Working example for… Continue Reading