Questions tagged as 'jquery'

1
answer

Insert multiple html with ajax

I have the following code in jquery: musicas: function(){ $.ajax({ url: 'assets/includes/oloco.php', type: 'GET', dataType: 'json', beforeSend: function(){ efeito.inicio(); }, suc...
asked by 09.05.2017 / 01:58
1
answer

Add dynamic fields in jQuery

I have the following HTML <form id="FrmLoja" method="post" action="#"> <input type="text" name="valor[]" id="valor" value="0" /> <input type="text" name="valor[]" id="valor" value="0" /> <input type="text" name="valo...
asked by 08.05.2017 / 19:24
1
answer

Method toggle () and position () together in jQuery

Is it possible to use the toggle () and position () methods in the same line of code? For example: $("#palette-base-category-"+category).toggle("drop", 1000).position({my:"right", at:"right", of:null}); att     
asked by 28.04.2017 / 13:28
1
answer

Gif loading

Hello I'm implementing this autocomplete And I would like that while the system searches the items, it shows a loading gif in the corner of the input. <!doctype html> <html lang="en"> <head> <meta charset=...
asked by 24.05.2017 / 22:06
1
answer

Convert Json to Array with Jquery

I am making an ajax request with jquery and Php like this: // arquivo php $json = array( "status"=>"true", "message"=>"inserido com sucesso" ); echo json_encode($json); . // arquivo js $.ajax({ ur...
asked by 26.05.2017 / 02:28
1
answer

Add values onclick ()

I have this code: var tudo=0; function muda(a){ o=$("#"+a).attr("data-ocupado"); var t = $("#gasto").html(); if(o==1){ alert("Lugar já Ocupado!"); }else{ p=$("#"+a).attr("data-preco"); var confirma = confirm("Deseja alugar este...
asked by 25.05.2017 / 22:24
1
answer

Remove bottom row from jquery tab

I'm trying to remove the bottom line from a tab, but I still can not get it I followed this tutorial and nothing. When placing my code, the line cuts the text <html lang="en"> <head> <meta charset="utf-8">...
asked by 25.05.2017 / 18:13
2
answers

Import a file containing script and link tags

I'm creating a website where, on all pages, the script and link tags to import the JS and CSS libraries are repeated. Is there any way to, for example, I create a script.html file (for example) and import this file to all my pages accordingly...
asked by 24.05.2017 / 20:40
2
answers

Help with JSON and jQuery

Hello. Home I have the following code: JsFiddle Home In it I have 6 checkbox from 0 to 5 stars, and when I click on a checkbox it filters a json displaying the hotel that has such a star so everything is fine. The problem comes when I select...
asked by 15.05.2017 / 18:54
1
answer

Json.parse does not convert to array

Hello, I am a full-fledged amateur in php and javascript and after a month of fighting with two languages that I had never stirred I got here. I'm trying to pass a JSON from a request back to array in my javascript, but when I use parse and p...
asked by 26.04.2017 / 14:21