JavaScript: Remove Space From String Examples
Do you wish to remove space from string using JavaScript? In this article, I am going to share examples on how you can remove space between string very easily. Read on to find out more.
Do you wish to remove space from string using JavaScript? In this article, I am going to share examples on how you can remove space between string very easily. Read on to find out more.
Over the web, at one point of the time or the other, you may have seen websites in which a textarea shows some default value, such as “Enter your comments” and when you click inside of this textarea, this default value vanishes. This is default value is called a “Textarea Hint” as it serves the […]
At times it might be desirable to jump to a specific div in a web page, just like a named anchor. If you don’t know what a named anchor is, in brief, it is a link within a page, rather than a link to a separate page. So, can we simulate the same behavior, for […]
At some point or the other, it might be useful to count the number of occurrences of a specific word or a string in another string using JavaScript. In this article, I am going to share very easy example to do just that with the help of easy to follow examples. Read on to find […]
The :first-of-type selector is another helpful selector in jQuery. It basically selects all elements that are the first among siblings of the same element name. That said, let’s take a look at quick examples on how to use it in real time to select any element that we need.
If you have many elements in a web page but need to select only the first one among them and perform your operation on it, what would you do? If you don’t have an answer, then this article is for you. In this article, I am going to share very easy way to perform operations […]
As can be seen from my previous article, string maipulation can be really helpful when using jQuery. That said, do you know how to convert an existing string of text to uppercase i.e. make all characters upper case. In this article, I am going to share easy examples with demos that show you how to […]
When using jQuery, at times it would be helpful to know how to convert an existing string of text to lowercase i.e. make all characters lower case. In this article, I am going to share easy examples with demos that show you how to do so. Read on for more.
If you are a Web Developer and you work with WordPress, then there may have been a situation where you needed to get the count for comments that were only in “Approved” state for a specific post. Note that this is different from the total comments count. So do you know how to get the […]