Questions tagged as 'jquery'

1
answer

Masks with jQuery: Phone, CPF and CNPJ

I need to create some masks for CPF, CNPJ and phone. The problem is that I've never used jQuery and I've never done any of this before. I would like somebody to help me because I looked for some things on the internet, like jQuery Plugin Mask, b...
asked by 30.06.2016 / 19:31
2
answers

Dynamic Grouping of JSON Data

I have been trying for some days to dynamically group JSON data, but without success, it is a matter of logic rather than programming itself. Given an array of objects (Users), group them according to their attributes (name, age, etc.). Th...
asked by 19.10.2017 / 19:46
3
answers

Use .on () instead of .bind () in CakePHP's JsHelper

When I write Ajax with CakePHP's JsHelper, if I write something like this $this->Js->get('#searchCity')->event( 'click', $this->Js->request( 'http://api.geonames.org/searchJSON', array( 'async...
asked by 14.02.2014 / 13:31
3
answers

Problem to remove element added with jQuery

I have a page with input , a button to add inputs , and each has a corresponding button to remove it. The problem is that I can not remove the inputs added through the button. Only the original is removed. Follow the code h...
asked by 08.01.2016 / 12:24
5
answers

How to receive a JSON object from an external url / domain?

I found a lottery API that brings me the result data of a lottery of Lotofácil, but I'm not able to access the data of the JSON object. I'm trying this way: $(document).ready(function(){ $.get( "http://developers.agenciaideias.com.br/lo...
asked by 24.10.2014 / 19:25
4
answers

Separate an array into groups?

I have the following code answered by a question similar to this but I would like to upgrade, this is the current function: function separar(base, maximo) { var resultado = [[]]; var grupo = 0; for (var indice = 0; indice < base.leng...
asked by 19.05.2017 / 14:58
4
answers

Return Array with name of all files in directory

I need my HTML5 page to return a Array with all file names and extensions in a directory within my site. I can do this in other server-side languages, but I'd like to do it in JS. is there such a possibility?     
asked by 16.12.2013 / 19:33
2
answers

echo is printing HTML tags

I made a script for newsletter subscription, the user sends the email to cadastre.php and from there the script receives an echo in a message with a button, the problem is that the button does not appear, what appears is the tag, see : Script...
asked by 28.12.2018 / 13:41
1
answer

Get elements by class / id with pure JavaScript

In jQuery, we use quotation marks to get $('div.oi') . And in pure JavaScript? Piss if we use without quotes is different. If we change the css for example: With jQuery: $('teste').css(teste);     
asked by 05.06.2017 / 19:56
4
answers

Problem with height of divs that do not follow each other's content

I have a problem that I think is easy, but I can not figure out how to solve it. I have a structure of type: <div class="conteudo"> <div class="esquerda"> </div> <div class="direita"> </div>...
asked by 17.05.2014 / 16:09