Questions tagged as 'jquery'

1
answer

How to preview several different images?

How do I preview several different images from different inputs? Here is an example of how I wanted it to be HTML <div class="col"> <input type="file" class="custom-file-input" name="arquivo" id="files" onchange="preview(t...
asked by 06.06.2014 / 20:29
2
answers

Return div to start position after animation?

How can I do to return my div to the starting position if it reaches a certain point on the left? I have the following current code: $(document).ready(function() { $("#botao").click(function() { $(".maior").animate(...
asked by 17.06.2014 / 19:18
1
answer

How to make a horizontal list of images that will not break?

I want to make a list of images horizontally, but they are falling, look: My CSS: #fotos{ margin-top:30px; width:650px; overflow-x: hidden; height:110px; border:1px solid #CCC; } #fotos ul li{ margin-right:4px;...
asked by 10.05.2014 / 02:01
1
answer

Interpreting XML with JQuery

I made a script with JQuery to use AJAX and it's working. The problem is when interpreting the XML is returned, the XML is the result of a login attempt, it contains information indicating whether the user was authenticated or not, otherwise it...
asked by 29.04.2014 / 16:15
1
answer

Bring JSON result into div with jquery

I have the following JSON generated by the system: var skuJson = { "productId": 17234, "name": "Sabonete AnaSuil Porta Joias Rose Bulgarie", "salesChannel": "1", "available": true, "displayMode": "especificacao", "dimensions": [...
asked by 09.05.2014 / 23:29
1
answer

Text field mask does not work in the mobile environment

I used the following code in jQuery to mask the telefone field for example. jQuery(document).ready(function () { $("#telefone").mask("(99)9999.9999"); }); This code works perfectly on the computer, but on the phone, only the form...
asked by 20.01.2017 / 12:19
2
answers

Extract arrays and JSON objects returned with jQuery

I'm making a request in a Web Service using jQuery this way: var dados = jQuery( this ).serialize(); jQuery.ajax({ type: "POST", url: "http://meusite.com/test", data: dados, success: function( data ) { // que...
asked by 20.01.2017 / 06:21
1
answer

How to create a JSON using jquery?

How do I create a JSON with several different names? Same: [{name: "john"}, {name: "pedro"}] Could someone give me an example? I tried to do so, but why does it always return the last item twice? Type John in the first and second, Pete...
asked by 14.08.2017 / 16:18
2
answers

WHM / Apache Server Configuration + jQuery Ajax

Recently I started having the following problem in the domains of my server with WHM: When running an asynchronous AJAX call in the background, I can not continue, that is, I can not access anything in the same domain by the same terminal tha...
asked by 25.08.2017 / 19:55
1
answer

Dropdown with jQuery

I was looking for a dropdown menu with jQuery and found this example: JSFiddle It opens and closes normal when I click outside the menu or some item of it, except when I open another dropdown. Any idea what it might be?     
asked by 02.04.2017 / 06:03