Questions tagged as 'jquery'

3
answers

Replace in the javascript array

Good afternoon, friends I have a problem here in javascript. I have an array, but with each index it is adding a double quotation mark, and I want to remove them from there. My code looks like this: dados = new Array(); $.get(url, f...
asked by 08.03.2016 / 15:44
1
answer

I need help with JQuery and / or JS to Drop Down Dependent Menu

I'm developing a program where you have a drop down menu happy with the Monthly, Weekly or Daily values that are the periodicity in which a system task should be run. Ai has a second drop down menu that should contain options according to what w...
asked by 04.03.2016 / 17:48
1
answer

Catch all data selected with javascript in multiple select field

I'll describe what I'm trying to do: There are sectors, and in each sector there are several employees, and I need to, when selecting a sector in a select field, the next field select (which will list employees) be filled with e...
asked by 23.05.2016 / 22:25
1
answer

Calculate input with formatting (mascara)

I have 2 inputs, quantity and value. The input value is using the plugin Jquery MaskMoney it is configured as follows: $('.money').maskMoney( { allowNegative: true, thousands: '.', decimal: ',', affixesStay: false });...
asked by 08.02.2016 / 18:22
1
answer

EventListener does not work with 2 or more inputs

So, my friends, I have a page with a for that does create several forms. In each form I have an input file, which I want to handle individually. However, when I try to use some eventlistener, it only works with the first input of the for. I do n...
asked by 11.02.2016 / 17:20
1
answer

How to keep the scroll bar of a div always down?

I have a div that updates every 4 seconds and I use the overflow in it, I need the scroll bar always to be aligned on the last line. Any suggestions?     
asked by 08.02.2016 / 22:32
2
answers

How to intercept and cancel key pressed in IE and firefox

How to intercept and cancel key pressed in IE and firefox? I'm trying to javascript pure but if I can not be JQuery . I used the code below but it only worked in chrome: <!DOCTYPE html> <html> <head>...
asked by 01.03.2016 / 20:28
1
answer

How to hide title when radio is selected?

I want to put a list of articles on my site and I want you to have the name and a short description of each article next to a radio. When the radio belonging to an article is clicked, a description of the article appears. This is already working...
asked by 01.03.2016 / 22:33
1
answer

Return JSON giving as undefinided in jQuery

I have this ajax request: $.ajax({ type: "POST", url: "retorno.php", success: function(data){ alert(data["nome"]); }, error: function(erro){ alert(erro); } }) And the file return.php: <?php...
asked by 29.02.2016 / 13:11
2
answers

Get cursor position with jquery

Is there any way to get the position of the cursor relative to the screen when typing in a textarea? Ex: I type some character, call a jquery keyup function and get the position where the cursor is stopped, relative to the screen? Edit: I...
asked by 18.02.2016 / 16:29