6640 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
2241 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
1730 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
1680 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
1602 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

1462 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
1433 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
1433 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
1431 2
how to modify url without reloading page?

How can I modify URL of a web page without reloading the complete page? Is it even possible using javascript or jquery?

I don't want to change the complete URL, just want to change URL after domain, i.e after https://www.test.com/change-from-here

thank you

...
Type
Question
javascript jQuery url-rewriting change-url-without-loading
1422 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

Page 1 of 6