Questions tagged as 'jquery'

1
answer

Would it be possible to identify if a DIV is over another DIV using some kind of script?

I have a DIV A, which moves on screen by clicking the keys on the keyboard. Is it possible to identify if this DIV A is on a DIV B using some script and trigger an event when the position of that div is recognized over the other? Code to move...
asked by 18.06.2017 / 08:42
1
answer

Opacity in everything, except in a certain DIV

Good afternoon. I need help with something. However, I still do not have a code. It needed something like an ad popup. That is, the entire screen becomes 'dark' while only the div has focus. I would like to understand the logic, if it would be b...
asked by 11.08.2017 / 20:30
1
answer

Show jQuery Custom Function [duplicate]

I would like to know how to add "effects" to show and hide, I tried adding it to my code but I did not succeed. I tried to show only a common div with class in css that gave the appearance that the image below has, but it stays behind other el...
asked by 09.10.2017 / 19:35
1
answer

Mask for digital ticket line field

Would anyone know if there are any masks for the ticket line? I have a screen where a client's ticket listing is displayed, and I also display the entire line with no points or separations, since this record comes from a webservice. And in th...
asked by 04.10.2017 / 17:16
1
answer

SQL query problem in laravel

I'm not really understanding these queries in laravel php. I did a search of cities states where when searching the state lists the corresponding city, but it does not find the id of the table if the relationships were done correctly. Municip...
asked by 04.10.2017 / 18:49
4
answers

How to create a randomly select button 3 of 5 numbers

My question is, how to create a button that randomly and automatically selects 3 of the 5 numbers that are shown. Like I clicked on them. Follow all my code below. <html> <head> <style type="text/css"> input[type=checkbox]...
asked by 11.10.2017 / 13:18
1
answer

Resize image with JavaScript

Would you like to build with JavaScript an image-manipulation interface similar to Word, which has the option of enlarging the image or reducing it with the mouse?     
asked by 20.07.2017 / 22:33
1
answer

Autocomplete locking the database

I'm developing an application in PHP and Jquery with the framework Codeigniter 3. I'm using Postgre and I have a database with more than 1 million registered registrations. I made an autocomplete that looks for the name of a product in the da...
asked by 21.07.2017 / 06:44
1
answer

Calculate space between Div and Body

I want to know the space between the bottom of Div A and the bottom of Body. I read about $.offset() , but this always returns me 0. PS: I want only in relation to what appears on the screen. If the body is larger than the screen, I wan...
asked by 18.05.2017 / 14:33
1
answer

CSS attribute in innerHTML, how to use it?

I have span that depending on the value I wanted it to be red for divergence and blue if the data is acceptable, I tried this way: getElementById('span').css('color', 'blue').innerHTML = <valor> But this did not work, I saw in...
asked by 22.05.2017 / 20:57