Questions tagged as 'jquery'

1
answer

Change image src

I have a field that calls img, in it I record the name of the image, for example: 001.jpg, where "1" corresponds to the record ID. I have a routine that changes the image and is working, the change is made by jQuery and ASP. But when I cha...
asked by 25.07.2015 / 00:01
1
answer

Smooth scroll anchor link

The following JS is intended to promote smooth scrolling when we click on anchors in a one-page site. Is it possible to restrict the performance of it only at resolutions higher than 760px? $(document).ready(function () { function filter...
asked by 24.02.2015 / 20:51
3
answers

JavaScript function returning Undefined

I'm having a problem with a JavaScript function. I need to check the existence of an item in the database and so I use a js function with ajax called verificaExistente . The php returns me a Json and in this function I check if there are e...
asked by 12.03.2015 / 13:43
2
answers

Collect value of a return

{"finalOFX":{"0":"276.67"},"0":null} So it is returning from PHP, as in javascript I give alert and only display 276.67 I've tried alert(dados.finalOFX) , but Object: Object appears     
asked by 13.03.2015 / 20:55
1
answer

Open a span when the image loaded by Jquery loads

This is the Jquery code: What I want is that when I click the loaded image it displays a span with a text at the end of the image. (function(){ /* Private variables */ var overlay = $('<div id="galleryOverlay">'), slide...
asked by 28.03.2015 / 23:03
1
answer

POST request is not formatted AJAX Jquery

See: HTML <form id="form" enctype="multipart/form-data" action="paginax.php" method="post"> <input name="nome_arquivo" type="file"/> <input type="hidden" value="valor_name1" name="name1"/> <input type="hidden" value="...
asked by 24.03.2015 / 03:12
1
answer

Prevent screen scrolling while opening modal

I'm creating a single-page site with five sessions, each one scripting the screen size. In one of these sessions, you have a button that will open a modal that will be the front of all the contents of all the sessions. With the modal open, it is...
asked by 30.03.2015 / 15:47
1
answer

Why is my radio input returning "on"?

I have this code : $(document).ready(function(){ $("[name='valor1']").on('blur',function(){ $(".empresa1").text($(this).val()); $(".valor1").val($(this).val()); }); $("[name='valor2']").on('blur',functio...
asked by 07.05.2015 / 04:08
1
answer

Add characters before each number

I have a string in a textarea that will look like this: 2199998888 2188889999 2455556666 2566665555 That is, phone numbers with break line to separate them within the textarea. I need to enter the country code on all phone numbers. I...
asked by 14.04.2015 / 16:02
2
answers

Why content-type false AJAX - JQUERY

I'm sending files via AJAX with Jquery, using FormData() , and then a question has arisen, why it works: $.ajax({ url:"action/receipt.php", method:"POST", processData: false, contentType: false, data: form, success:function(d...
asked by 01.10.2015 / 16:27