27 1
How do I remove last comma from string using jQuery or Javascript?

I have a string like "this, is, test," now I want to remove the last "," (comma) from this string to make it like "this, is, test", so How can I remove only last comma from string jQuery or Javascript?

I prefer Javascript method,thanks

...
Type
Question
Javascript jQuery remove last comma from string
87 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
Javascript jQuery get latitude-longitude using google address api
1318 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
1540 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
141 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
Javascript js-add-class javascript-toggle-class

624 0
How to get user location using Javascript / HTML5 Geolocation?
In this article, I am going to provide you few solutions using which you can get user location using javascript or HTML5 Geolocation with example.
Type
Article
JavaScript HTML5 Geolocation get user location javascript find ip geolocation get geolocation javascript
420 0
Get image width and height using Javascript and jQuery
In this article, I have explained how you can get width and height of an image before upload using javascript or jQuery to impose width or height constraint.
Type
Article
Javascript jQuery
147 1
How to remove square brackets from string using javascript?

Hello, I am working a javascript function, in which I want to remove square brackets from string suppose if string it "[test]", then after removing square brackets I should get "test" only.

How can I do this using Javascript and regex, or without regex?

...
Type
Question
Javascript regex remove square brackets from string
313 1
How to implement validation for input type file using jQuery or javascript?

Hello, I have a HTML form inside which there is <input type="file" /> field, and now before posting form to the server side, I need to validate/check if file field is empty or not, I want user to upload atleast one image file in this field, so how I can implement validation message for <input type ="file" /> field in the form using jQuery or javascript code?

Sample HTML Form

...
Type
Question
HTML Javascript file input validation
229 1
How to get response data from XMLHttpRequest?

I was trying to get location by calling google maps API using javascript and wanted to know how to get response text/data after request is successfully sent.

Here is my javascript code:

...
Type
Question
Javascript google maps reverse geocoding

Page 1 of 6