Top "Javascript" questions

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript).

How can I remove a specific item from an array?

I have an array of numbers and I'm using the .push() method to add elements to it. Is there a …

javascript arrays
How do I redirect to another webpage?

How can I redirect the user from one page to another using jQuery or pure JavaScript?

javascript jquery redirect
How to check whether a string contains a substring in JavaScript?

Usually I would expect a String.contains() method, but there doesn't seem to be one. What is a reasonable way …

javascript string substring string-matching
Get selected value in dropdown list using JavaScript

How do I get the selected value from a dropdown list using JavaScript? I tried the methods below, but they …

javascript html-select
For-each over an array in JavaScript

How can I loop through all the entries in an array using JavaScript? I thought it was something like this: …

javascript arrays loops foreach iteration
How do I check whether a checkbox is checked in jQuery?

I need to check the checked property of a checkbox and perform an action based on the checked property using …

javascript jquery html checkbox
How to format a JavaScript date

In JavaScript, how can I format a date object to print as 10-Aug-2010?

javascript date date-formatting
How can I get query string values in JavaScript?

Is there a plugin-less way of retrieving query string values via jQuery (or without)? If so, how? If not, is …

javascript url plugins query-string
Loop through an array in JavaScript

In Java you can use a for loop to traverse objects in an array as follows: String[] myStringArray = {"Hello", "World"}; …

javascript arrays loops for-loop