2354 1
how to open new tab and insert content in it using javascript?

How can I open a new tab using javascript or jquery and insert new dynamic content in it? Bypassing the pop-up issue also, as I need to show a .pdf file in new window, but you can show me the code of opening and showing HTML in it, I will handle the pdf part.

Thanks

...
Type
Question
2318 1
Detect if an element is hidden or visible in jQuery-javascript?

I am trying to check if Ads are visible or not(blocked) when user loads my web-application page, if not show a message, which is already hidden by default,so how can I detect if an element is visible in the current page after loading it, and if is not-visible make it visible(some other div to show user's a message to load ads on my website and support us) using jQuery or javascript?

Also is it possible to toggle the visibility of an element, using the function toggle() or any other function?

Thanks

...
Type
Question
2300 2
Format any number to two place of decimal using JavaScript?

I am getting data from the server using jQuery data table, now I want to format all the price or numbers getting from the server to two decimal places using javascript.

How can I do it?

For example:

...
Type
Question
2233 2
how to loop on JSON result & show it to user using jquery?

I am getting JSON result from my C# MVC controller into front end using Ajax call

...
Type
Question
2192 0
Google places autocomplete example without Map in Javascript
In this article, I have provided step by step procedure to show google places autocomplete example without map in HTML input textbox.
Type
Article

2191 2
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
2017 0
RGB to Hex and Hex to RGB using Javascript
In this article, I have provided sample code to convert RGB to Hex and Hex to RGB using Javascript, quickly and easily.
Type
Article
1987 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
1967 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
1943 0
Toggle Password input field using Javascript (Show/hide password)
In this article, I have provided working example to show or hide (toggle) password input field using Javascript, with an example.
Type
Article

Page 8 of 12