Questions tagged as 'jquery'

1
answer

How to change the placehoder according to the value of select?

I have set this code and when the user chooses cafe in the <input type='search'> field it should appear for example: Cimo, 3Corações, Utam . If the user chooses refrigerante it should show in the field: Coc...
asked by 11.11.2017 / 14:14
1
answer

Change json value

I have the following JSON: [{"id": 1,"preco": "R$50"}, {"id": 2,"preco": "R$70"}] I would like to change the value of 'price' by removing R$ leaving only numbers using javascript or jQuery     
asked by 16.11.2017 / 17:05
1
answer

Change the class name with jQuery

I want to create jQuery with contrast functionality, where the user clicks on a particular button, the site would be dark and if clicked again, it would return to normal. We bought a template that offers this functionality, but in the following...
asked by 19.11.2017 / 13:20
3
answers

Wrap equivalent in javascript

The jquery has a method called wrap which basically adds a container to the desired element, but I can not find the method in javascript, does anyone know?     
asked by 20.11.2017 / 17:20
1
answer

opening ul menu by disabling the button

I have a select made with a ul and I have the following problem: When I open select , it goes over 2 botões . And after that, both botões are desabilitados . What should be happening? $(document...
asked by 22.10.2017 / 19:14
1
answer

Collapse bootstrap opens all tabs at the same time

<div class="taskList"> <div class="taskToDo clearfix data-toggle="collapse"> <span class="col-sm-8 taskTitle"> <span class="checkTask"><i class="...
asked by 26.10.2017 / 18:44
1
answer

Is it possible to monitor all Responses and Headers of the page to use as a trigger for a function?

I have a script that needs to be executed only after the return of a page request, since the request returns HTML content, and the function I want to execute immediately after it implements this received HTML. The problem is that I can not play...
asked by 25.10.2017 / 22:42
1
answer

fadeIn of divs in a loop?

I have the following code that I would like to make fadeIn and fadeOut after 3 seconds. I thought I would use setInterval to loop and then use setTimeout to give the time each div was visible. Is there any way...
asked by 19.10.2017 / 12:18
1
answer

Display Array data in the Jquery table

I'm developing an application which calculates the average where I validate the fields if they are filled out and if the fields are filled and the sum of the notes is less than 10 it passes the inputText data to the calculating function of the m...
asked by 04.11.2017 / 23:30
1
answer

Function within function [duplicate]

These days, I asked a question here in SOpt and the guy answered me with a code, creating a function within another function , something simple, but I did not use it, and I started to implement it. function QuantosEmEstoqueAbrir(){ $j('...
asked by 11.10.2017 / 19:52