Questions tagged as 'jquery'

1
answer

Place description in hover image [duplicate]

I'd like to this hover effect from that site's image, but I'm not getting it. $('.img').on('mouseover', function(e) { $(this).css({ 'opacity': '0.5' }); $('.hiddenDiv').css({ 'display': 'block' }); }); $('.img')...
asked by 19.11.2018 / 17:49
1
answer

How to pass more than one url to ajax consume json?

I need to create div's with data from two urls with json via ajax, and the data will be returned on the same page, however I need to pass two urls as a parameter, how can I do this? var url_aparecida = 'https://upvagasweb.000webhostapp.com/ger...
asked by 27.11.2018 / 19:43
2
answers

I can not read this JSON

This is a .json file that I created just to understand { "campo": [ {"nome":"Lucas vidotti"} ] } I know that to read this value with jquery I need to do $.getJSON and manipulate by key, but I can not...
asked by 27.11.2018 / 21:02
1
answer

Detect scroll when start and end of div with jquery

Well, I need to detect when scrolling the page (regardless of whether it is the mouse scroll or browser sidebar) to go through a particular div to identify the beginning and end of it, since I need to apply an animation when the scrolling is goi...
asked by 14.09.2018 / 01:07
2
answers

send file by ajax [duplicate]

I have a form to fill and write files in the database passing the data by ajax but the file is not arriving. The form: <script src="jquery.min.224.js"></script> $("#documento").click(function(e) { e.preventDefault(); var t...
asked by 26.09.2018 / 15:16
2
answers

Tooltip Bootstrap 4 does not work

I'm trying to use the Tooltip with Bootstrap 4, but it just does not show up: In HTML it looks like this: <a class="btn btn-sm btn-warning" href="" data-toggle="tooltip" data-placement="top" title="Editar"><i class="fa fa-edit">...
asked by 06.12.2018 / 18:03
1
answer

Confirmation of form action [duplicate]

I have this code to delete a record from the bank. How can I put in my code a form's jquery confirmation (yes no)? $('#deleteButton').on('click', function(e){ // We don't want this to act as a link so cancel the link action...
asked by 06.12.2018 / 14:37
1
answer

How to make a checkbox not selected if there is no previous checkbox selected?

I have a pile of monthly payments, where each one is found in a select. I'd like all of them to be disabled first except the first check, and that by enabling the first check, the second check might be available to be enabled, and if I disabl...
asked by 18.10.2018 / 19:29
1
answer

How to make the slider not catch the last element?

I would like to know how to resolve the following case. I have a structure as follows: <section class="portfolio slide" id="portfolio"> <h2>portfólio.</h2> <div id="foto"> <img src="images/img-1.jp...
asked by 16.10.2018 / 23:03