Questions tagged as 'javascript'

2
answers

How do I go through the following array using javaScript?

json [ { "idDisciplina":"1", "0":"1", "Nome":"Matematica", "1":"Matematica" }, { "idDisciplina":"11", "0":"11", "Nome":"Ciencia", "1":"Ciencia" } ] script $.ajax({ ur...
asked by 25.08.2017 / 17:44
1
answer

Search within two arrays

The case is the following. I have a script I wanted to use and as with all the questions "I suppose" I do not know how to do it. I am trying to do a search of array data with javascript "because they do not suggest other languages if your answer...
asked by 12.09.2017 / 19:58
1
answer

Put 00 on the left in another variable [duplicate]

I have an HTML form that receives the number according to the ID registered in SQL and saved in another variable, however the ID is sequential and without zero, for example: ID 1 ID 2 ID 3 I needed to get this ID and put it in the Number...
asked by 11.09.2017 / 22:54
2
answers

Browse table with N lines with FOR and find specific values

How to move a table with N rows and find the values specific to each DropDownList ? Example of the table below: Itriedthecodebelow,butwithoutsuccess.functionValidarStatusGrid(){vartemp,td;vartable=$("tbPedidos"); var status = $("#...
asked by 13.04.2018 / 19:05
1
answer

Access sub div JavaScript

<div class="container"> <div class="card-deck mb-3 text-center"> <div class="card mb-4 box-shadow"> <div class="card-header"> <h4 class="my-0 font-weight-normal">Lights</h4> </div&...
asked by 18.04.2018 / 20:19
1
answer

Dynamically fill fields according to JSP CEP Javascript

I want that when I type my zip and click the search button, it returns the data of the public place, state, neighborhood and uf but clicking on the search button it is not calling the function that searches the data of a webService of the mail....
asked by 20.09.2017 / 20:57
2
answers

Remove negative signal from input number

I have the following code in jquery: $.each(data.Dados, function (i, val) { tr += '<tr>'; tr += '<td><div class="product" style="margin-bottom:0;padding-bottom:0;"><div class="product-info" style="margin-bottom:0;pad...
asked by 09.11.2017 / 00:06
3
answers

Concatenate single quotation marks in date variable?

I have an application in VueJS and I need to concatenate simple quotes in a variable that has a date like this 2017-11-09T02:00:00.000Z . I tried the following and I did not succeed: var novaData = "'" + data + "'" I tried...
asked by 09.11.2017 / 14:28
2
answers

How to prevent a mode from appearing?

Is it possible to prevent a modal from appearing if certain conditions are met? Example of what I want, more or less: <button id="abreModal" class="btn btn-info btn-lg" data-toggle="modal" data-target="#modal">Open Modal</button>...
asked by 24.10.2017 / 20:20
3
answers

How to remove brackets in a regex?

I'm using a regex to remove some characters, but as one of them is the brackets [] and I'm having problems with the regex replace(/[.!'@,><|://\;&*()_+=]/g, ""); . How would it be to remove this character in this function?     
asked by 30.05.2017 / 22:23