Encode and decode strings with base64 in JavaScript
Today we will show you how to encode and decode strings with base64 in JavaScript. In this article, we will use the btoa() and atob() JavaScript methods to encode or...
Today we will show you how to encode and decode strings with base64 in JavaScript. In this article, we will use the btoa() and atob() JavaScript methods to encode or...
Today, we’ll explain to you how to show and hide password field text using jQuery. In this toggle or show/hide password functionality, you can see the password during writing. Here...
Today we’ll explain to you how to implement international telephone input with country flags and dial codes using jQuery. It is common functionality to add auto country code in the...
Today, we’ll explain to you how to get the number of days between two dates using jQuery. Sometimes, we need to calculate the number of days between two dates. Using...
In this short article, we will show you how to trim string from the dynamic object in JavaScript. Sometimes we may need to remove the whitespace from the both ends...
Today, we’ll explain to you how to get day name of a date using JavaScript. Sometimes we need to display the name of the day according to the given date....
In this short article, we will show you how to add days to a date in JavaScript. Here, we will add the number of days to the given date using...
Today, we’ll explain to you how to show and hide a textbox using JavaScript and jQuery. Here, we will show/hide the div with a textbox depending on the selection of...
Today, we’ll discuss how to create a Modal Popup using jQuery. We may always need to open a popup in a web application to show information, feedback, contact form or...
Today, we’ll explain to you how to open an URL in a new tab using JavaScript. In the HTML, using the target=”_blank” attribute in anchor tag (<a>), we can easily...
Today, we’ll explain to you how to remove all whitespace from a string in JavaScript. Replacing whitespace or blank space from a string is a common task. We can easily...
Today, we’ll explain to you how to combine two strings in JavaScript. We can assign a string to a variable and combine the variable with another string. Here, we will...
In this short article, we’ll show you how to disable the browser back button using JavaScript. Sometimes we need to prevent the user from going back to the previous page...
In this short article, we will show you how to remove the first element from an array in JavaScript. Here, we’ll discuss about the two different methods to remove the...