Questions tagged as 'jquery'

1
answer

Ajax + Php Pass Variable

How can I send a variable through Ajax and retrieve the value in PHP? <script type="text/javascript"> setInterval(function(){ $.ajax({ async: true, url: 'contalog.php', dataType: 'html', type: 'POST', cache: false, success: function(res...
asked by 11.11.2017 / 03:50
2
answers

JSON Treatment

Through JQUERY, I need to make a request via POST where I will get a JSON with a token. The JSON return I get after sending the POST is this: { "Token": "e27bb0a7-e65b-4cc3-a82e-7a2a3c26a248", "Codigo": 0 } My question...
asked by 14.11.2017 / 11:55
1
answer

How to do a line break with jquery? [closed]

I'm having a textarea, and at the time you type the text will appear in the html image do you understand? Type this I wanted to know how I can make my text break it in the other div from the moment I give an enter in textarea.With Jquery....
asked by 23.11.2017 / 11:30
2
answers

How to use Jquery functions in array?

I'm selecting a select and trying to access one of the options to place it with the selected attribute, but whenever I try to use .att("selected", "selected"); I get the error: TypeError: size[0][1].attr is not a function...
asked by 08.01.2018 / 21:12
2
answers

Problem at the time of popular elements in the database

I was doing a chat project in php, with ajax, but my code does not insert anything into the database, but I have no idea what it is, and before they think I did not search, I already tried to bring the variable from js to php, but I could not, I...
asked by 26.01.2018 / 05:15
1
answer

Submit a post with reload of just one div

I have a form that I want to pass via POST, but without reloading the entire page, after submitting the information, I wanted a div to reload its content, I have the following code: <script> $(function() { $("...
asked by 30.11.2017 / 19:05
1
answer

Get HTML with jQuery by pressing button

I have a simple system that takes the HTML of a file and places it in a single dynamic index . Example: <a onclick="carregar('cartaonatal/natal.html');" href="#">Agradecimento</a> //chama a função function carregar(pagina){...
asked by 04.12.2017 / 02:33
2
answers

How do I send a form by e-mail and change the DIV to another one with a message?

Oie I did following: HTML <div id="minhaDiv"> <form id="formulario"> <input type="text" name="nome" id="nome" autocomplete="off" placeholder="Digite seu Nome"> <input type="text" name="email" id...
asked by 02.03.2018 / 12:33
1
answer

Clear field file when you have no more pictures

I have the following stylized field that uploads multiple images: Asaresult,itshowsasfollows: Sofarsogood,butIwouldlikeyoutodeletealltheimages,alsoclearthefilefield.Seethecodebelow:<labelfor='files'class="upload">Selecionar arquivos &l...
asked by 03.11.2017 / 14:37
2
answers

Retrieve variable data jQuery

I have the following button: <button type="button" class="btn btn-default" data-toggle="modal" data-target="#abrir-imagem" data-pasta="interno_fotos" data-imagem="139379939.jpg">Abrir Imagem</button> I need to recover it through...
asked by 23.10.2017 / 17:26