Questions tagged as 'jquery'

2
answers

Insert the return json into divs separated by div / div

I have a return of type JSON that I'm trying to insert into the div, but it's all inserted one on top of the other. <!-- DIV que vai receber as informações --> <section> <div class="conteudo"> <div class="foto"> F...
asked by 04.02.2015 / 17:40
1
answer

Adapt function to queryselectorall

I'm trying to adapt a function that used to be used only with QuerySelector, but I need to adapt it to get all the divs (QuerySelectorAll). See: var draggableEl = document.querySelectorAll('[data-drag]') The function function move(even...
asked by 22.01.2015 / 22:06
1
answer

Mask for input DATA: "00/00/0000" === '0 to 31' / '0 to 12' / '19 || 20 '' 0 to 9 '' 0 to 9 '=

Hello, I need to make my <input id="data"> as parameters: taking into account the format of: 00/00/000; the first two from 0 to 31. (if they put value above, it resets to 31) The third: 0 or 1; The fourth number: 0 to 12;...
asked by 10.04.2015 / 07:10
1
answer

Event on (change) on radio button

In the project I have a file that asks for freight rates and at the same time returns two radio buttons with the freight values. The HTML return is as follows: <p> <b>Selecione: </b><br> <input type="radio" n...
asked by 02.01.2015 / 21:35
1
answer

Remove links that have a certain string with Jquery

Good evening, good people ... Good my doubt and the following, I have a list of links ... <ul> <li><a href="baixar.php?musica=teste-ativo.mp3">Musica 1</a></li> <li><a href="baixar.php?musica=teste-des...
asked by 09.05.2015 / 01:08
2
answers

Validating two date fields

I need to verify that the user has entered the date in two date fields. <input type="text" name="data1"/> <input type="text" name="data2"/> How to solve this? If I put required in the field, it only works in chrome. But what abo...
asked by 06.05.2015 / 20:48
1
answer

Add inputs according to the value of a field

I would like to know how to create input fields according to the value I add in a field. Ex: I have a field of type number that has a minimum value of 1 the maximum value of 4 and the default value is 1: <input type="number" min="1" max=...
asked by 19.04.2015 / 16:05
2
answers

How to use fadein () to change background color?

I would like to have the effect between the colors have a fade effect. Who knows using .fadein() . $(function () { var colors = ["#0099cc", "#c0c0c0", "#587b2e", "#990000", "#000000", "#1C8200", "#987baa", "#981890", "#AA8971", "#198...
asked by 01.12.2014 / 04:09
1
answer

How to add and remove fields generated via CakePHP, dynamically?

Hello. I have a <select> that is fed by data from the database. I need to manipulate this select and multiply it if the user wants to send two different data. Since the <option> s depends on the data coming from the...
asked by 11.12.2014 / 13:42
1
answer

jQuery function to format date by .class

I'm trying to make a script that gets the class .data from the input and convert the date to pt-br, but I can not do it, I'd like some help. $.fn.converteData = function(){ var data = ($(this).val()).split("-"); var dataf = data[...
asked by 25.11.2014 / 21:00