3003 2
how to loop on JSON result & show it to user using jquery?

I am getting JSON result from my C# MVC controller into front end using Ajax call

...
Type
Question
2954 2
Detect if an element is hidden or visible in jQuery-javascript?

I am trying to check if Ads are visible or not(blocked) when user loads my web-application page, if not show a message, which is already hidden by default,so how can I detect if an element is visible in the current page after loading it, and if is not-visible make it visible(some other div to show user's a message to load ads on my website and support us) using jQuery or javascript?

Also is it possible to toggle the visibility of an element, using the function toggle() or any other function?

Thanks

...
Type
Question
2894 1
Error "TypeError: Cannot read property 'classList' of null"

Hello, I am trying when simple code to add datepicker in javascript using below HTML and Javascript Code, but I am getting error "TypeError: Cannot read property 'classList' of null", how can I resolve it?

cannot-read-properties-of-null-reading-classlist-min_sgpbi5.png

HTML/JS Code

...
Type
Question
2883 2
How to detect click outside an element (or div)?

Hello, I am trying to work on a project which requires me not allow a user to click outside of a particular element, let's say a "<div>" or "<p>", then how can I detect click outside an element using Javascript?

...
Type
Question
2832 0
Send email from Javascript
In this article, I have provided sample code to send email using Javascript with smtpjs api.
Type
Article

2779 1
How to get lat/long using Google address autocompete api using Javascript or jQuery?

I am currently using Google's address autocomplete api to get the locations (address) as shown in example here

https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

Now I would like to get only Latitude and longitude of address, when user selects the address.

How can I do this using Javascript or jQuery?

...
Type
Question
2664 3
How to select specific div or Form which does not have specific class?

I want to select an HTML element (form) which does not have a specific class ('Ajax_Stop'), so that I can implement a jQuery function on that, basically when submitting a form I want to check if a form or div doesn't have that specific class using jQuery-javascript, & run a function if it doesn't have that CSS class.

How to do it using jQuery or javascript?

...
Type
Question
2588 3
How to Parse JSON in javascript?

How can I parse JSON string in javascript?

The response is something like

...
Type
Question
2563 1
What's the difference between let and var in JavaScript?

Hello, as I am not very well versed with javascript, I would like to know the difference between let and var keyword of javascript?(With example if possible)

Or Any reference link with proper details will also work, thanks

...
Type
Question
2544 1
How do Add class using Javascript?

I wanted to add or remove classes from my HTML <div> dynamically using Javascript, I don't want to use jQuery here, so How can I add a class using JS?

If possible, I would also like to know how can I toggle class in Javascript

...
Type
Question

Page 9 of 13