Questions tagged as 'jquery'

1
answer

Make condition if with split

I need to make a condition, where I check if a input has entered the character . . For this I am doing a if where I make split with value of my input. if (idCliente.split('.')[1].length > 0) If input...
asked by 11.04.2014 / 11:33
2
answers

Change background of a class dynamically

I have a site where content creation is dynamic and the user can choose the color to be used in components, but I need it to see the update in real time, so I need the class to be changed with the required value and that the added elements also...
asked by 08.05.2014 / 00:01
1
answer

jQuery function should only be executed on mobile

I think the title is self-explanatory. I need a jQuery function to "enable" only when I am in a resolution less than 1024px.     
asked by 13.11.2014 / 16:35
1
answer

Call PHP variable within a Javascript function

Within the .js of NivoSlider, I have the following line that calls the two sliders of the slider (left and right): slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav"><img class="seta-esquerda" src="document.wr...
asked by 07.11.2014 / 00:30
4
answers

How to make the DIV fill 100% of the display?

Good afternoon I would like to create a site where the height of the first DIV is 100% of the display displayed to the user, and when giving the scroll, the other elements appear normally. I know I have a way to calculate this using jquery or...
asked by 12.02.2018 / 17:37
2
answers

Keep script running

I wanted to know if there is a way to keep a php script running internally on the server even with the browser turned off. I do not mean scheduling tasks, but maintaining a process as soon as it gets off my system. I saw in a bitcoin mining comp...
asked by 11.12.2017 / 21:31
2
answers

Open modal second only after closing the first

It seems simple but with difficulties, I have two modal that has to appear in the home after login of the user, I need to appear one and only after the user closes that first appears the second modal. I have the following code: $(do...
asked by 18.01.2017 / 18:22
3
answers

How to compare indexes of two objects and return what is different?

I would like to compare these two objects and return the index that is different. In this case it is to return the 4th of the second object (it will always be different in the second). var arr = { 1 : 'Corsa', 2 : 'Ka', 3 : 'Pálio'...
asked by 26.01.2017 / 14:17
1
answer

FormData () object for sending files via ajax Jquery

I need to send data from a form via ajax to the server (php). I used the FormData () object but without success. Part of my jquery: var formdata = new FormData($("#myform")); var link = "form/insert"; $.ajax({ type...
asked by 27.10.2015 / 00:08
1
answer

Check if a div is visible

I need to know which div id is visible, I'm looking for isVisible () but it's not working, what should I do? Problem:    I have several divs that take over the entire screen, but I only see the screen that is in question on the screen, but...
asked by 23.12.2015 / 16:41