3990 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
1148 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
1018 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
987 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
912 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

910 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-in-javascript local-storage-vs-cookies localStorage web-storage-html5 sessionStorage-html5
845 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
828 2
Open and Close bootstrap modal using jquery?

I have a requirement to open and close bootstrap modal using jquery or javascript , as I have to kept it open until some background task is complete and after that close bootstrap modal pop-up as soon as task is completed succesffuly, how can iI achieve it using jquery-javascript?

...
Type
Question
jQuery bootstrap modal-pop-up modal-dialog
775 2
How to check if string contains substring using jQuery-Javascript?

I am trying to send data to front end, using Ajax call, now I am getting string like

...
Type
Question
jQuery Javascript substring-from-string contains
694 1
How to check if url contains a sub-string using jQuery or javascript?

How do i check if the current URL contains the sub-string using jQuery or javascript?

I need to select a anchor tag using class if a condition is met, suppose i need to check if URL has "/CRM" then select

...
Type
Question
javascript check if url contains string jquery check if url has parameters javascript

Page 1 of 5