Questions tagged as 'jquery'

1
answer

Prevent sending of Google event when pressed F5 and access via GET

Speak up! I need to do an event upload prevention of analitycs in the following scenario: I have a form that when the submit is given, the post is rendered in ajax and this ajax returns a URL in which I do the redirect via location.href...
asked by 18.05.2017 / 16:01
1
answer

Remove row from table after deleting via AJAX

I have a table that shows student records, and each row has a button to delete the student, and the deletion is done via AJAX. I would like to give a fadeOut on the line that is deleted, so in the AJAX success I did the following: success:func...
asked by 18.05.2017 / 02:29
1
answer

JQUERY as add tag p

I'm new to JQuery and would like to know how I add two <p> tags without input, for example: <p>Valor do Pedido: <span id="resultado" class="resultado">5</span></p> <p>Taxa de Entrega: <span id="tx...
asked by 11.05.2017 / 11:37
1
answer

Insertion of dimly created inputs

I'm dynamically creating fields like this: $(document).ready(function(){ $('#quantidade').on('change', function(){ var quantidade = $('#quantidade').val(), campos = $('#campos'); campos.html(''); //aqui eu fiz limp...
asked by 09.06.2017 / 03:30
2
answers

Clear selected option from a select with jQuery

I have a form with radio buttons, and when I select the radio buttons it will appear / hide the fields I want. So much for beauty, but if I select an option on and then mute the radio button, that field will add, but does not clear the value...
asked by 09.06.2017 / 15:29
1
answer

Get data from a textarea and populate HTML table

Good afternoon, I'm breaking my heart to solve this, could anyone help? I have a textarea in which the user will paste the data from an excel spreadsheet, the data comes in as follows: 10 | produto1 | 1 | 3 20 | prodto2 | 2 | 4...
asked by 04.05.2017 / 22:36
1
answer

Only open prompt if you click the parent element and not the child element

I have div and inside it has several other elements (img, span, etc.). What I need to do is that only when I click on div parent the prompt of javascript opens, if you click on another element (child, the ones inside) nothin...
asked by 05.05.2017 / 17:29
1
answer

How to calculate the speed of a user's internet connection?

I'm trying to calculate the speed of the connection in MB of a user who accesses my site. But I could not find much on the internet besides programs that are ready and sites that already do that. The only thing I was able to do was to calculate...
asked by 02.05.2017 / 15:12
2
answers

Concatenate string to all page href

I would like to know if there is any function in jQuery that can concatenate to the page's hrefs a string. My page behaves differently if my url contains #es or #pr , so I wanted to keep this comment at the end of each link. E...
asked by 02.05.2017 / 15:34
1
answer

Perform calculation Quantity x Value between inputs in shopping cart

I'm trying to make a calculation in my shopping cart, for example: quantity x price throwing the result in another input, I could do for the first product, but in the others it is not working. The script I have in php is this: <form...
asked by 12.05.2017 / 16:53