Disable or Enable Multiple Inputs Fields on Button Click

In this blog post, We learn to Disable or Enable multiple Inputs Fields on Button Click. In this example we use querySelectorAll() and disable property to enable and disable input field, querySelectorAll() returns a static (not live) NodeList representing a list of the document’s elements that match the specified group of selectors. The disabled property sets or … Read more

Confirm Delete on Button Click in Javascript

confirm delete button work, If the user selects ‘Ok‘ then href redirect to ” url_to_delete “, else if ‘Cancel‘ is clicked nothing happens. Method 1 The confirm() method displays a dialog box with a specified message, along with an OK and a Cancel button. Method 2 create a button with a function name ” ConfirmDelete … Read more

Get Last Day of the Month in Javascript

Get Last Day of Month in Javascript

In this blog post, we get the last day of a given month in javascript. Creates a JavaScript Date instance that represents a single moment in time in a platform-independent format. Date objects contain a Number that represents milliseconds since 1 January 1970 UTC. Javascript Result Syntax I hope it will help you.

Replace Multiple Characters In Javascript

Replace Multiple Characters In Javascript

In this blog post, we will replace multiple strings with another string. Here we are going to use the replaceAll() method of javascript. Replace All Occurrences of a String in JavaScript. Now we have a string. In which the word “Lorem” has come many times. We will replace all “Lorem” words with “code” by str.replaceAll() … Read more