3245 3
How to get difference between two dates in javascript?

I would like to get Difference between two dates using javascript or jQuery in simple way.

How can I do that, for example

...
Type
Question
2130 1
How to get current timestamp using javascript?

Hello, How can I get a timestamp in JavaScript? I need simple, understandable & easy code.

...
Type
Question
9499 4
How to get client's IP address using javascript or jQuery

Hello, I would like to know, how to get client’s IP address using JavaScript and jQuery?any working example or code? thanks

...
Type
Question
2896 3
what's the difference between javascript substr and substring?

What's the difference between the javascript substr and substring, which is better to use and when?

...
Type
Question
5486 3
How to generate random string using javascript?

Hi, I would like to generate the random string using javascript? How can I achieve it?

Any length of string would work but if possible I would like to have a random string of 6 characters.

...
Type
Question

4788 1
geolocation not working on safari browser,but its working fine on Chrome,IE,Mozila

I am using HTML5 geolocation which is not working on safari browser,but its working fine on Chrome,IE,Mozila,here is my current javascript code

...
Type
Question
3886 1
How to strip out only Text from HTML string using javascript?

Suppose I have an HTML string like below:

...
Type
Question
12834 3
How to compare two arrays using Javascript and get unmacthed elements?

Hi, I need to compare two arrays using javascript or jQuery and then get distinct values from each of them, like for example:

...
Type
Question
4624 3
How to show formatted (pretty-print) JSON using JavaScript?

I am getting a JSON from the server side(C# .NET) using jQuery ajax call, now I would like to show this JSON to users in readable format like postman does when we send request using it(& get results in JSON) or you can say want to show JSON in readable or formatted form.

How can I achieve it using jquery or javascript?

...
Type
Question
3698 3
How to add new array element at the start of an array in javascript?

I have already created a array dynamically using Ajax,  but now when i am getting new values to server, sometime i need to add that array on first position based on requirements, so how can i add a new element of an array to first position using javascript(preferred) or jQuery?

...
Type
Question

Page 10 of 13