Questions tagged as 'javascript'

1
answer

Carousel - thumbnail not active when changing slide

I have a problem because I can not leave the thumbnail activated using css, leave an image as an example of the want and the code below. Thanks! jQuery(document).ready(function($) { $('#myCarousel').carousel({ interval: 5000...
asked by 25.01.2016 / 13:42
1
answer

Is it possible to modify HTML when writing an email in Gmail?

The intention is very simple, I want to make a <strike> (crossed out) in the email text, eg: struck . I found the library KartikTalwar / gmail.js: Gmail JavaScript API , but it requires tremendous laps and the creation of a Chr...
asked by 02.02.2016 / 13:09
2
answers

How to fix JavaScript so that it works before I choose an option in my select?

Hi, I have my page code <select class="form-control" id="selected"> <option selected="selected" value="0">Selecione</option> <option value="a">MONTAGEM LATERAL</option> <option value="b">MONTAGEM...
asked by 11.11.2016 / 11:51
1
answer

How to know if the passed object is a DOM element?

I'm working with functions in which I must pass ( Mandatory ) a DOM element. This function will work with the properties of this DOM element. Example function changeValue(elem, value){ elem.value = value; } var input = document.g...
asked by 21.11.2016 / 19:09
1
answer

How to use .toggle () to swap animations

I am trying to toggle the animation of a div using .toggle() , but this div , which is the first gray ball, simply disappears after I click the button (orange ball), instead of returning to its position initial. function mai...
asked by 14.02.2016 / 22:01
2
answers

Searching the variable letters after the point to validate upload in Dropzone

I'm having a problem, I'm actually developing an image upload system and I'm using the dropzone , however I need to do something to separate the files that I have, in real I can only accept images of type jpeg, png, jpg. For this I'm getting th...
asked by 13.02.2016 / 02:49
2
answers

How to block certain keys in an input using Javascript?

I have a function in javascript where I only allow numbers, commas (,) and hyphens (-) in an input. The problem is that I can type as many commas (,) and hyphens (-) as I want. I would like to know how I can only allow one comma or less. M...
asked by 22.02.2016 / 18:46
2
answers

How to activate an event from a class change

I have the following problem, I made navigation arrows for some elements and depending on the active element, I need to change the CSS of another element. In the example below I would need to change, for example, the background of the body to...
asked by 02.01.2017 / 15:35
1
answer

How to update fields in AngularJS?

When inserting items into the list using the following code snippet: $scope.items.push({ codigo: $scope.s.codigo, ncm: $scope.s.ncm, descricao: $scope.s.descricao, preco: $scope.s...
asked by 02.01.2017 / 01:35
1
answer

How to delete a term entered a form using jQuery?

The code below is part of a function that uses a search term in a text field to extract images from the Flickr site. After entering the word to search, it inserts the text below the field, just to show that it is looking for it, but the problem...
asked by 20.11.2015 / 00:35