Questions tagged as 'jquery'

2
answers

Increase textarea's size

I'm trying to use Sweet Alert 2 . I would like to increase the textarea field by using the rows attribute, but it is not working. How do I increase the size of the field? $('.btn').on('click', function(){ telaModal() }); functi...
asked by 10.07.2018 / 20:29
1
answer

Why should not I use Jquery with React?

What would be the disadvantage when using jQuery with React? For I am turning a site that is all in jQuery to React and I see in many forums the staff saying that it is not good practice to use jQuery next to React but with no complete explanati...
asked by 22.05.2018 / 22:53
2
answers

How do I apply a ZIP mask on a column of a DataTable using JavaScript?

I have a DataTable in my View Index that has the CEP column that needs to have a zip code mask (ex: 29780-000). Does anyone know how to do this using JavaScript? <table class="table table-hover table-bordered dataTable table-striped wid...
asked by 25.05.2018 / 22:38
2
answers

Array list in multidimensional array

I have this loop: aaff = [];contador_selecionados=0; $(' .values .layout .acf-input').children('').each(function(index,element){ contador_selecionados++; aaff.push( element.value); console.log(contador_selecionados); }); console.log(aaff);...
asked by 15.10.2018 / 19:25
1
answer

Field checkbox is not recognized marked

I have these two fields checkbox <label class="control-label col-md-3" style="text-align:left;">Tipo de Pedido</label> <div class="col-sm-3" style="text-align:left;"> <input type="checkbox" asp-for="Produtos...
asked by 15.10.2018 / 20:27
1
answer

Get image address, jquery

Hello, good morning! I would like to get the SRC value of the IMG tag, using js / jquery. In this case, it would be link <html> <head> <title>hello</title> <script src="https://ajax.googlea...
asked by 03.11.2018 / 17:16
1
answer

Calling Jquery function inside a For loop

$("#divOpcoes").fadeOut(500, function () { $(this).text('Opção ' + indiceAtual + ".").fadeIn(500); }) The above line is inside a for loop and variable "Current index" is incremented each loop loop. My problem is: the function passed to fadeOut...
asked by 09.05.2018 / 14:02
1
answer

PDF file preview on website developed with PHP, Jquery and CSS3

I saw on the Dropbox website that my PDF extension files are previewed on the first page of the file, I looked for solutions on the internet for the same but I saw that there are only ways to embed the PDF in iframe or using a google drive URL t...
asked by 13.05.2018 / 05:40
3
answers

Read values from a Json structure using Jquery

I am trying to read the data that is received via php and I need to read those values separately. The return is a json object, when I show in the console using the command console.log(data) and the following structure appear...
asked by 15.05.2018 / 15:32
1
answer

Problem with Mascara Currency and calculation

I have a function that is called here: $("#valorPrimeiroPedido").focusout(function () { var valor = $("#valorPrimeiroPedido").val(); calcularValorMercadoria(valor); }); $("#valorPrimeiroPedido").val() alrea...
asked by 05.04.2018 / 16:30