Questions tagged as 'javascript'

1
answer

How to activate animation only on the button clicked and not at all

I'm new to development and I'm having a problem. I have some "cards" each with an image, a description and a button that when clicked makes the description appear. But when I click on a button to show the description it shows everyone's. Belo...
asked by 15.01.2018 / 17:20
1
answer

Overlap Div with Navbar

Good morning. I'm using Bootstrap to develop a website and I'm using a Navbar and a Div with an image, but when I enter the navbar and div with the image, the div starts just below the Navbar and that's not what I expected. Basically what...
asked by 23.01.2018 / 13:56
1
answer

Calculation of jQuery threaded percentage

Good I am challenged to calculate the final value of the product on the same page without refresh, with 4 fields of discounts on a gross value presenting the unit and total result (items of a purchase order or invoice regardless of the name attr...
asked by 23.01.2018 / 14:34
1
answer

After choosing an option in the selectbox, disable and change the text of two other selectboxes

Beauty galera. I have three selectboxes and after picking the "Movies" option in the first box, I would like to disable the other two selectboxes and modify their texts to "N / A": <select id="categoria" name="categoria"> <option valu...
asked by 24.01.2018 / 05:11
2
answers

How to keep checkbox selected after refresh on page with localstorage JS

I'm trying to keep the checkboxes selected even after refresh on the page, this is my progress: // javascript var s_item = ""; function save(items) { s_item = items; var checkbox = document.getElementById(s_item); localStorage.set...
asked by 14.01.2018 / 17:07
1
answer

Error with jQuery animated number counter

Personally, how can I load the contactor only when the element is on the screen? ('.count').each(function () { $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 4000, easing: 'swing',...
asked by 12.01.2018 / 20:34
1
answer

Replace src field value with javascript

I am trying to modify a function in this virtual store click here . In this product page, in the code html of the page, in the image gallery, there is the following code that is referring to the main image: <a class="thumbnail mi...
asked by 12.01.2018 / 15:37
1
answer

How to render a file in a frame?

I use a service that returns a file in PDF, I have a web application that I currently do a Windows open on the service call and downloads the file. However, I now need to render this file in order to generate the automatic print of it. Doe...
asked by 13.01.2018 / 00:03
1
answer

Error (Uncaught ReferenceError: google is not defined) in the "Run" in the MAPS API for Autocomplete

An error is occurring in the " google.maps.event.addDomListener (window, 'load', initialize) ;" and I can not resolve: '( function initialize() { var mapOptions = { center: {lat: -33.8688, lng: 151.2195}, zoom: 13, scrollw...
asked by 13.01.2018 / 21:49
0
answers

Disable JS script on certain pages

I added a script in JS in PHP based on my project in CodeIgniter, this makes the other controllers also run this script. How would a particular page not execute this script?     
asked by 24.01.2018 / 12:32