2304 1
How to remove all Google maps marker using Javascript?

Hello, I was able to add multiple markers using javascript in google maps, but now I would like to remove them without reloading google maps. I was able to remove one using 'marker.setMap(null);' but how can I remove all markers at once using Javascript in Google Maps.

 

...
Type
Question
2262 0
Send email from Javascript
In this article, I have provided sample code to send email using Javascript with smtpjs api.
Type
Article
2260 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
2244 3
How to Parse JSON in javascript?

How can I parse JSON string in javascript?

The response is something like

...
Type
Question
2209 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

2175 2
how can i validate email using javascript?

I would like to know how can I validate email using javascript-jquery?

...
Type
Question
2156 0
Encrypt and Decrypt string in Javascript
In this article, I have mentioned how we can Encrypt and Decrypt string or text in Javascript to secure text.
Type
Article
2117 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
2082 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
2038 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