Questions tagged as 'jquery'

1
answer

Problem when rotating an object continuously

I created a circle to be rotated 45 degrees every time I click the arrow, either right or left. For this done, I'm using CSS and jQuery. ( SEGUE FIDDLE ) I made the following function spin(direction) to include any of the directions...
asked by 31.08.2017 / 15:43
1
answer

Avoid accumulating in a string by repeatedly clicking a button

I have the following code that works as follows: Clicking the button returns a string aaaa,bbbbb which are the values of the inputs. Clicking for the second time returns aaaa,bbbbb,aaaa,bbbbb and so on. The question: how t...
asked by 19.09.2017 / 03:44
1
answer

Buttons - ID - Carousel not working

I do not understand much of jQuery, but what can be happening? I would just like the arrows to work properly, do not go for style. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Teste Car...
asked by 31.08.2017 / 20:19
1
answer

Modal when accessing the site

Could someone pass me a simple jquery code? I just need a modal (div) to appear when the site is accessed and contains a "close" button.     
asked by 24.08.2017 / 18:03
3
answers

How do I only allow digits in an input field?

I have implemented the routine to verify if pressing a key in the INPUT field is typed only in digits. The first field works normally, but adding the second field no longer works. Does anyone know what the problem is? $(document).ready(fun...
asked by 24.08.2017 / 16:52
2
answers

Insert text in timeline

I made a timeline using HTML and CSS and I need to add a story every year when I clicked on a particular year of the line displaying the story it contains that year, how do I do that? .DB_Timeline { padding: 0; margin: 0 auto; lis...
asked by 24.08.2017 / 01:37
1
answer

Condition not to send field in ajax

Hello Is there a way to not send the password field via ajax, if it is empty? As it is, it is sending as empty and replacing the value of the field with empty, so I would like to send this field only if it is different from empty. fu...
asked by 20.09.2017 / 04:53
2
answers

Change button text in AJAX request

Hello! I know the question seems silly, but I do not understand the reason it's not working. I want to send the form via ajax while the request is made, the button is disabled and the name (text) of the button is changed to salvando...
asked by 20.09.2017 / 14:22
1
answer

jquery - pass variable from page to page

Well, I have this scenario ... my index.html calls another page (home.html) and there are two variables in the index that I want to take home to make my decisions ... index code. $("a[data-type]").on('click',function(){ var _nome =...
asked by 20.09.2017 / 00:02
1
answer

How to dynamically pass input name to Jquery

I have the following function in jquery in my script PHP $('.myinput').on('blur', function(e) { $.ajax({ url: 'gravadado.php', method: 'POST', // ou POST data: { q10600: this.value...
asked by 21.08.2017 / 22:24