JavaScript: How to Get the Value of a Select or Dropdown List
Getting the value of a select in HTML is a fairly recurring question. Learn how to return the value and text of a dropdown list using pure JavaScript or jQuery.
Getting the value of a select in HTML is a fairly recurring question. Learn how to return the value and text of a dropdown list using pure JavaScript or jQuery.
In this article I'll explain the main things you need to know about RegExp, this will be helpful for JavaScript and any other programming language you may use. In fact, knowing regular expressions puts you in a different level as a programmer.
Don't know the difference between the various types of JavaScript comparison operators? When to use ==, ===, != or !==? Read this article and you will have all the information you need.
Learn a cleaner and more effective way to replace accents, punctuation and other special characters using JavaScript.
Even the simplest rounding methods in JavaScript can have serious accuracy problems. And that's what I'm trying to fix here. Let's figure out how to round to N decimal places reliably in JavaScript.
Learn how to show a time indicator on the screen that updates in real-time. Ideal for making clocks, chronometers or countdown, the process is the same and uses Date and setInterval.
Comparing dates is a recurring feature in any application. Whether it's the same date, earlier or later than the other date. Fortunately, JavaScript already has built-in features to do that. You can use the Date.getTime() method.
Dates are essential information in any application. It is very common to have to know the difference in months, days, or even seconds between one date and another. To help, I have written this useful step by step for any case.
Learn how to clone JavaScript objects efficiently, be it a shallow copy or a deep clone of the object.