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
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
89 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
28 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

Page 6 of 6