Questions tagged as 'jquery'

1
answer

Memory game with div tag [closed]

I would like only the current div to change. I would like to randomize the divs. How to preface? $(document).ready(function() { $('.cores').click(function() { $('#1').css("background","red"); }); $('.cores').click(function() {...
asked by 17.03.2017 / 21:04
3
answers

Disable a FUNCTION on mobile

Hello everyone, I want this scroll function to be disabled for mobiles, or it will only be active if the width of the screen is 1200px up. $(window).scroll(function () { // Movimento primeiro box vermelho if ($(this).scrollTop() >= $("#box...
asked by 13.11.2015 / 18:07
1
answer

PHP being commented out within JS [closed]

The code is this: success: function (result) { var tbody = $('tbody'); tbody.html(''); $.each(result, function(k, value) { search += "<tr class='tagtr'>"; search += "<td>" + value.description...
asked by 21.01.2016 / 15:28
1
answer

JQuery does not carry effect obtained through a service

I'll try to expose my problem as best I can. I have a page made in HTML and I have a service done in Java that returns me an html. In my html page I use an ajax function to load data from this service until it works fine, however I have so...
asked by 31.03.2016 / 00:31
1
answer

I want to remove everything after Search with jQuery

Here is the url: ... / search? type = APARTMENT% 2FAPTO + DUPLEX & area_de = area_at = & value_of = & value = neighborhood & neighborhood = Auxiliary & neighborhoods% 5B% 5D = AUXILIATOR & code = & send = Buscar & or...
asked by 23.02.2015 / 16:49
2
answers

Display only daughter div with jQuery

I need to attack the div comentarioPost and make only the div of the corresponding post be displayed. I have simulated some comments to test, then they will come from the bank with the other information. How do I do this with jQuery? I le...
asked by 07.01.2016 / 11:16
3
answers

responsive menu with jQuery and css

Galera I mounted a menu that appears when placing the cursor on the letter B. The problem is that when it is left-aligned the menu disappears at the corner of the page. If I remove the line (margin: 0px 0 0 -225px;) The problem is solved,...
asked by 21.03.2016 / 14:48
1
answer

jQuery click () is not running [closed]

I'm trying to do a function in jQuery that by clicking on the button it executes the click () function of jQuery to pick up input data and send via post HTML <input type="text" name="nome" class="input-xlarge" placeholder="Nome" re...
asked by 03.07.2014 / 04:28
2
answers

Grouping and adding array in JavaScript

How to make a function to only add values that are of the same date? I'm passing an array of arrays: [{ servicos: 0, remessa: 503, materiais: 0 , retorno: 598, entrada: 0, date: new Date("2011/12/20") }, { servicos: 302, remessa: 0, materiais:...
asked by 15.05.2014 / 16:20
1
answer

Remove div "Father"

I have my following code: <div class="row"> <div class="col-md-10"> CONTEUDO 1 </div> <div class="col-md-2"> <a href="#" class="btn btn-primary">Delete</a>...
asked by 13.01.2015 / 21:12