7882 2
how to pass value to razor variables from JavaScript?

How can I pass value to razor variables from JavaScript in .cshtml(razor) page (asp.net mvc C#)?

Something like this

...
Type
Question
JavaScript jquery C# MVC asp-net
2826 2
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
javascript arrays compare-arrays-values
1912 0
Local Storage in HTML5 using Javascript (Storing-fetching objects)
This article explains about HTML5 local storage and how to use local storage in javascript (storing and retrieving objects), instead of cookies to get better security and faster results.
Type
Article
javascript HTML5 local-storage-vs-cookies localStorage web-storage-html5 sessionStorage-html5 html5 local storage
1885 1
SyntaxError: Invalid shorthand property initializer

I am getting the error "SyntaxError: Invalid shorthand property initializer" in my Chrome console, after writing this code of javascript/jquery

...
Type
Question
javascript jQuery Syntax-Error $.get
1874 0
Javasript ES6 class explanation with example
In this article, I have explained about javascript es6 classes, it's syntax & how to use it with an example.
Type
Article
ES6 javascript javascript es6 class javascript es6 class example javascript class javascript class example

1826 2
How to remove quotation marks (double quotes) from string using jQuery or Javascript?

I am working on a web-application which returns JSON results as "/FileURL", I just need to get /FileURL as a result, means I need to remove quotation marks (double quotes) from returned JSON string using jQuery or Javascript, how can I do that?

...
Type
Question
Javascript jQuery remove double quotes
1758 2
How to format JSON date into valid date using javascript or jquery?

I am getting JSON result from server, with date as given below

...
Type
Question
json-date javascript convert-json-date-into-valid-date convert json date to datetime
1663 1
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
javascript jQuery get client's IP address using javascript
1657 2
How to create social media share buttons using HTML & JavaScript? (no external library)

Hello, I would like to add social media share buttons on a website without using any external javascript plugin, as I am already using external JS plugins which increases page-load time, so I want to create custom social media buttons using HTML,CSS and Javascript or jquery only (without external plugins) to decrease page load time.

Any code help or link will work

thanks

...
Type
Question
HTML javascript social media share buttons without External plugin
1563 2
Closure in Javascript and its use
This article explains about, what is closures in javascript and it's use cases with example
Type
Article
javascript closure in javascript what is closure in javascript closure uses

Page 1 of 6