Questions tagged as 'javascript'

2
answers

How to make a form submission without form?

The question may seem strange. But on a particular page I would like to make a submit , like a form, when clicking a button, but without the presence of the form in HTML. Is there any way to simulate submitting a form, without it being...
asked by 07.12.2015 / 13:56
2
answers

Get all "checked" checkboxes in a list generated dynamically by jQuery

I have a modal in which it contains a list that is dynamically generated by jQuery via a callback of AJAX . The question is that I need to get the id's of all the "checkbox's" that were selected in it. I'm pretty sure I'll need the ....
asked by 26.08.2015 / 16:12
2
answers

Adding and Removing Fields with Javascript

I need the user to add the same fields as many times as he wants, and also to remove them. I was able to do the script to add the fields, but remove is not working. HTML <a href="#" data-id="1" id="adicionarCampo">+ adicionar campo<...
asked by 03.10.2014 / 14:47
3
answers

Equations in module

I need to get the height of 2 elements, where these elements can have varying heights and then find the difference between their height as in the example: A = 20 B = 15 | A - B | = 5 How do I do this in an equation with JS?    ...
asked by 05.02.2014 / 01:03
1
answer

Uncaught ReferenceError: $ is not defined [closed]

Where did I go wrong?          form test             <script type="text/javascript" > $(document).ready(function(){ $('#meuForm').validate({ rules:{ nome:{ required: true...
asked by 04.03.2015 / 17:04
2
answers

How to persist / fill the data of a form via PHP?

... /busca?tipo%5B%5D=APARTAMENTO%2FAPTO+DUPLEX&area_de=50&area_at=100 In this URL I have 2 data types: type that is checkbox APARTMENT FIT + DUPLEX area_of which is select 50 area_at which is select...
asked by 01.11.2014 / 22:56
3
answers

Calculating in Table Fields with JS

I have a table with two fields: "Product Value" and "Sales Price". Another field to define a calculation for the "selling price". The function only works for the first row of the table. I would like to know how to make the calculation to be appl...
asked by 10.06.2016 / 01:17
1
answer

How to call a file in node.js

I want to know how I call a .js file if anyone can explain step by step thank you. As far as I understand to call an external file I have to create a sort of package that proceeds?     
asked by 20.01.2015 / 17:05
1
answer

Transform string into array

I'm searching data and mounting a string to go to the graphics api of google but I'm having trouble, I'm doing it like this: var variavel = "['Data', 'Membros', 'Visitantes'],"; for(var b = 0; b < pontos.length; b++){ var obj = pontos[b...
asked by 12.07.2016 / 19:10
3
answers

Get difference between defined / current hours

I would like to get how many hours have passed, from a certain date, to the current date. For example: day = "Thu May 19 2016 05:00:00 GMT-0300 (BRT)"; today = "tue May 23 2016 09:00:00 GMT-0300 (BRT)"; Variable day has the starting...
asked by 24.05.2016 / 14:39