Questions tagged as 'jquery'

2
answers

Conflict on events with jquery

I have the following code: $('#abre-busca').click(function(event){ event.preventDefault(); $('#menu-principal-sub li').css({'opacity':0}); setTimeout(function(){ $('#menu-principal-sub li').css({'display':'none'});...
asked by 24.01.2017 / 16:32
4
answers

Get the smallest value and highest value of an array with JavaScript?

How do I get the lowest value and highest value of the array separately with javascript and jQuery?    var arr = ["885.9", "984.9", "444.9", "528.9", "528.9"]; The lowest value in this case is 444.9 and the highest 984.9.     
asked by 23.06.2017 / 22:56
2
answers

Fit string in HTML calculator

I have this calculator that is not my own and works perfectly. The problem is that when we multiply, the display shows asterisk and not x . I would like that when clicking to multiply, x appears in the display and not asterisks. $(...
asked by 28.06.2017 / 20:54
1
answer

Error sending Json

I have the following variable: json_envio = JSON.stringify (obj); The value of it is: "{"usuario": {"login":"gleyson", "senha":"1"}, "razao_social":"INTELIDER", "nome_fantasia":"INTELIDER LTDA", "cpf_cnpj":"10999558000...
asked by 27.06.2017 / 16:00
3
answers

Format string or float for currency

I've been researching this but I have not found a solution. I have for example a float: 2087500 , I want to leave it as follows $ 20,875.00 I found several methods of passing float to coin but everyone has a period (.) before the last two...
asked by 26.06.2017 / 19:22
1
answer

OnBlur does not work on dynamic inputs?

I am making a system where it loads the inputs according to the selection of select , but since they are dynamic it is not working, what I need is when I select as payment method check, the inputs that are loaded load the same infor...
asked by 18.09.2017 / 21:13
1
answer

Insert ajax dynamic query result inside the input

I'musingadynamicquerywithAJAX+JQUERY,theresultisappearingbelowasshownintheimageabove.<divclass="form-group"> <label for="inputEmail" class="col-lg-4 control-label">FORNECEDOR</label> <div class="col-lg-8"> <inp...
asked by 05.12.2016 / 14:58
1
answer

how to change an image src from another page

Hello, I have an input where it serves as a search bar. When entering a name and pressing enter, a function is activated and performs the following function: function verificaValor(){ var valor = $('#search').val(); switch (valor) {...
asked by 20.11.2016 / 04:50
2
answers

selector does not work: $ ("div + p")

Someone could tell me why this command line is not working: $("#marcas_select + #modelos_teste").css("background-color", "yellow"); Here is the complete code. As everyone can see the purpose is to let the select_test model with the yellow b...
asked by 29.11.2016 / 18:15
3
answers

Change td value after validation

I have the following HTML code <table> <tr> <td class="x">10</td> <td class="x">10</td> <td class="x">12</td> <td class="x">18</td> </tr> </table> Using jquery I can ge...
asked by 24.10.2016 / 00:47