Questions tagged as 'jquery'

1
answer

Send data along with event

As I venture through jQuery some doubts and problems arise in the middle of the path, one of them is: Is it possible to send a data through an event triggered by another event? Something like this: jQuery $(".seletor1").on("click", functi...
asked by 05.07.2014 / 07:48
1
answer

How to validate format and compare two dates to enable buttons

I'm using a script * to enable a button when two validations are done. The first one checks the format, and the second if the start date is smaller than the final one, but I'm having some problems adding more fields with the same functionality,...
asked by 25.06.2015 / 05:42
3
answers

How to copy to clipboard without using flash?

Google Chrome is displaying a message. This site uses a plug-in (Adobe Flash Player) that will not be compatible soon. Is there any way to do it without Flash? How? And something that preferably copies an attribute, for example: <a h...
asked by 17.08.2015 / 16:26
2
answers

How to avoid animation of elements that will not fit the width of the screen?

I created a jQuery animation for a customer's Christmas postcard. However, in 1024x768 or 800x600 resolution screens, elements appear in strange locations: The code below hides the balls at startup, then makes them appear one by one until...
asked by 20.12.2013 / 22:35
3
answers

How to implement a "scroll hijacking"

I have noticed in several modern pages a scrolling behavior that goes up to certain interest part of the content, researching, I discovered that this type of behavior is called "hijacking". The term "hijacking" literally translated means "kidnap...
asked by 06.06.2017 / 15:37
1
answer

Get mouse position in percentage by clicking on the image

I have an image on the screen and I need to click on the image and know the position of where I clicked in relation to the X and Y of the image. For example, I clicked the center of the image, so X would be 50% and Y 50%. I tried t...
asked by 04.05.2017 / 22:01
1
answer

Animation div with Jquery does not recognize keys

<!DOCTYPE html> <html lang="pt"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> &l...
asked by 31.12.2016 / 19:57
2
answers

Is it possible to disable certain action of an HTML element with a certain class via jQuery?

In my initialization I hedge all links should block using the
asked by 21.02.2014 / 19:01
1
answer

Undo the parent element jQuery

How can I prevent a #b click from executing the #link click, I would like it to alert only "b" $("#link").on('click',function(){ alert('link') }); $("#b").on('click',function(){ alert('b') }); <script src="https://ajax.googleapis....
asked by 17.12.2015 / 14:21
2
answers

What is the difference between the following ways of using the ON and OFF methods of jQuery

1 - Used to use this way: $(document).off('evento', 'elemento', nomeFuncao); $(document).on('evento', 'elemento', nomeFuncao); 2 - But recently I used it that way and it worked the same way. $(document).off().on('evento', 'elemento', func...
asked by 01.08.2016 / 19:32