3683 2
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
3590 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
3560 2
not able to access iframe contents using jquery or javascript

I was trying to manipulate HTML inside iframe using jquery-javascript, I am trying something like this

...
Type
Question
3530 2
Closure in Javascript and its use
This article explains about, what is closures in javascript and it's use cases with example
Type
Article
3520 0
Toggle Class (Javascript based, without jQuery)
In this article, I have provided working example on how to toggle class using pure Javascript and without using jQuery.
Type
Article

3473 2
Console error "Syntax error Unexpected token 'export' popper.min.js"

I am using below scripts in my page and have included popper.min.js using CDN but getting an error, "Syntax error Unexpected token 'export' popper.min.js"

    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/js/select2.full.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js"></script>

Here is the error image, take a look

...

Type
Question
3457 0
Read JSON file with Javascript
In this article, I have explained how we can read JSON file with JavaScript easily and can parse it.
Type
Article
3432 3
How can I get dd/mm/yyyy formatted current date in Javascipt?

I am trying to get today's date using Javscript, which I can do using new Date() but i would like to know, how can I get it formatted in dd/mm/yyyy and show it in datepicker input?

...
Type
Question
3376 3
How to generate random string using javascript?

Hi, I would like to generate the random string using javascript? How can I achieve it?

Any length of string would work but if possible I would like to have a random string of 6 characters.

...
Type
Question
3373 1
Autocomplete Textbox using Javascript (Multiple Methods)
In this article, I have provided sample code with output to create autocomplete textbox using Javascript and using HTML5 Datalist tag also.
Type
Article

Page 5 of 11