Questions tagged as 'jquery'

1
answer

How do I migrate my website to RequireJS?

Currently I concatenate all my javascripts with grunt I send the mined file to the page, but I know a best practice is to use RequireJS to muddle everything, but I do not know how to migrate my Javascript files from "normal" to "modules ". :   ...
asked by 24.07.2015 / 20:38
1
answer

How to control the placement of a div with position fixed?

How can I make it so that when my right div gets to the comment area div it gets fixed again? When it arrives at an X number of distance from the top I apply a position fixed for it to follow the content: Link of the stuff <script type="...
asked by 27.07.2015 / 19:55
1
answer

How do I connect to the database via [WordPress] to consult?

Well, I have a call jQuery Ajax on header.php of my theme that is entering a PHP file in the root of my Wordpress and returning me echo test. I need this file to query the banco de dados and return me so...
asked by 29.07.2015 / 22:48
1
answer

Centering div on an image

In a project I have an image that when the mouse is at the top starts an effect on a div that is over the image, my problem is that often the div is not centered, because the image has a dynamic size , and I have no more ideas on how to fix this...
asked by 08.02.2016 / 12:23
1
answer

Block 'body scroll' when the LightBox is open, but you can scroll the contents of the LightBox

Forgive me if I'm wrong, because I do not know the exact name of the effect I'm looking for, I've seen such an effect on some pages over the Internet but at the moment I do not have any links that I can use as an example. As described in the...
asked by 08.02.2016 / 01:26
1
answer

How do I add a month to the current date with jquery

Good afternoon, How do I add a month to the current date: Example user types 4 in input qtdParcela : var _data = new Date(); $("#qtdeParcela").on("change", function () { var _qtde = $(this).val(); for (var i = 0; i <...
asked by 08.02.2016 / 18:05
1
answer

Selecting elements by classes with jQuery

How do I select an HTML element that has only the classes I want? For example: $('.a.b.c') -> deve retornar apenas a div1 e não todos os elementos que também possuam as classes a, b e c além de outras <div name="div1" class="a b c"&g...
asked by 24.11.2015 / 19:20
2
answers

Jquery video exchange

I can not get you to change the video after clicking the button I wanted the video to change on the top, but it appears 2 after clicking the ... function setvideo(src) { document.getElementById('div_video').innerHTML = '<video au...
asked by 22.07.2015 / 00:31
1
answer

Jquery final event of the video

Good morning, I have a problem, I wanted to display a modal at the end of each video, the first video worked correctly, but in the second I can not ... Follow the code below ... If anyone can help, thank you very much! var vid = do...
asked by 22.07.2015 / 13:28
1
answer

Next Back content on page

In this table there are the rounds, where it all appears, I wanted a forward and back button and the guy could see the next rounds, without having to scroll the whole screen, wanted to appear only the round in question and each forward and bac...
asked by 17.07.2015 / 16:19