Questions tagged as 'jquery'

2
answers

If input has only blanks, do nothing

I'm doing a chat application with WebSocket . I used contenteditable="true" in <div/> , because I needed to put it like this to make it easier on other functions. In the part of input that sends the message to...
asked by 15.04.2015 / 06:10
2
answers

Iterate a form with JS

I have a form with some items, and some cells contain the bank code data and account code to receive. In the same cell, I have 2% with% distinct, inputs and checkbox . I need to iterate and get the values of all hidden tha...
asked by 09.04.2015 / 01:07
2
answers

Receive variable real time ajax

Well I'm making a system, and I need to get the variable of a php page every time, so I can work on it on my index.php page. A friend of mine who understands more about ajax than I passed the following code: However, I do not know how to p...
asked by 03.07.2016 / 01:00
2
answers

Callable in Javascript

I have a list of id's in buttons: <button id="grafico01">Pontuação por MARCAS</button> <button id="grafico02">Pontuação por EQUIPAMENTOS</button> <button id="grafico03">RAZÃO da Pontuação</button> ... tha...
asked by 29.06.2016 / 15:08
1
answer

Change the target of an element with jQuery

How can I pass this code in JavaScript to jQuery ? I did not understand the context ... document.getElementById("imageForm").target = "my_iframe";     
asked by 13.12.2014 / 17:07
2
answers

What is the difference between mouseleave and mouseout?

In jQuery, what is the difference between mouseleave and mouseout ? The two events seem to do the same thing!     
asked by 20.07.2015 / 15:05
1
answer

jQuery ajax, asynchronous encapsulation

I like encapsulation because it greatly reduces the source code, I have done the following regarding ajax: custom.ajax=function(obj,funcao,view){ // FUNÇÃO AJAX var data = {'obj':obj,'func...
asked by 08.07.2015 / 20:53
4
answers

Set generic "data - *" attributes with javascript;

I need to retrieve all my data attributes, and set the information to a specific date attribute. Example: <div class="box_campo"> <input type="text" data-valor="0"> <ul> <li>apenas exemplo</li>...
asked by 13.07.2015 / 21:59
2
answers

JavaScript Date

I have a date in the following format: 1424102400000 , that is, an integer value. (I do not know how to say the name of this format). Home I need to convert it to presentable value to the user, so far so good. I'm using the toUTCString () met...
asked by 22.07.2015 / 14:09
2
answers

"Transform" one element into another with JQuery

In my script, I have a iframe . <iframe id="result" name="result" src="url_do_documento" sandbox="allow-same-origin"></iframe> The file that iframe references, contains a h1 element, as in the structure below...
asked by 28.01.2015 / 14:36