10411 3
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
2427 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
9357 3
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
5934 3
How to open New tab using javascript or jquery and open href in it?

I would like to capture href of anchor tag<a> on click, and open that link in new tab using javascript or jquery, how to do this?

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

How can I parse JSON string in javascript?

The response is something like

...
Type
Question

4848 3
How to get query string values in JavaScript or jQuery?

I am working on a web-application and would like to know, how can I get query string value in javascript (possible using jquery, or with plain javascript), I don't want to increase page load time by adding an extra plugin, a demo code example would work.

thanks

...
Type
Question
7370 2
how to format text as a dollar currency using javascript or jquery?

I would like to format the input string in my textbox to dollar currency formatted text, so if I enter 100.00000 in it, output should be

...
Type
Question
6032 2
SyntaxError: Invalid shorthand property initializer

I am getting the error "SyntaxError: Invalid shorthand property initializer" in my Chrome console, after writing this code of javascript/jquery

...
Type
Question
12491 3
How to format JSON date into valid date using javascript or jquery?

I am getting JSON result from server, with date as given below

...
Type
Question
4098 3
Difference equals operator (== vs ===) in JavaScript and which to use when?

I came up with two javascript comparison operators ==(two equals) and ===(three equals) sign, I would like to know when I should use which of these comparison operators and when?

Is there any performance improvement when using ===? 

Thanks

 

...
Type
Question

Page 11 of 13