Questions tagged as 'javascript'

1
answer

Returning the day of the week in Javascript

I have two codes to return the day of the week, but in the first it returns undefined, and in the second it returns the wrong day, for example on 22/05/2016 it returns Wednesday, and the correct one would be Sunday. Code 1: $(document).read...
asked by 22.05.2016 / 19:38
2
answers

Passing a data id from a table to the modal?

Good morning, for a college work I'm trying to create a modal, for decision whether or not I want to delete a record from a table, in this table I have user information on a grid with new, delete, edit and checkbox to remove multiple records. In...
asked by 27.05.2016 / 12:55
2
answers

Problem with duplicate form submission

I'm having a duplicate form submission problem. It occurs as follows. I have an html form, when the user gives 2 quick clicks or clicks fast on the enter it sends the form 2 times. I tried to solve the problem as follows. I made the for...
asked by 19.02.2016 / 11:51
1
answer

How do you make a column stick when it reaches the ends?

In a two-column layout, if the first one is larger than the second (height), there will be a blank space instead of the second when you scroll the page to a certain extent. I want it when it reaches the end of the column it fixes instead of cont...
asked by 22.02.2016 / 22:48
3
answers

How to add attributes to an element that was created with JavaScript?

I created a elemento with JavaScript: $("<div />").addClass("placeholder").appendTo(element); But I can not give attributes to it, how can I do this? I tried the following code, but it does not work: $(document).ready(functi...
asked by 21.02.2016 / 02:01
1
answer

NaN Error in Calculation using Javascript after click submit

I have a problem here that I can not solve, in the script below perform a calculation of on the marked seats, so far everything is perfect the problem and when I put a submit button to send the data and finishes clearing the field of result givi...
asked by 12.01.2016 / 00:15
2
answers

(Laravel) method $ .get can not find route

Hey guys, all right? I would really appreciate your help as I have been stuck with this problem for a couple of days and can not solve it myself. I have a multi-line table with a checkbox on each line and a button that, when clicked, takes...
asked by 16.02.2016 / 18:45
1
answer

PHP variable in JS within the While

I am creating a chart using Chart.js and PHP, I would like the value to come from an array in PHP with the index of a JS variable. This is the code I tried to do. <script type="text/javascript"> var ctx = document.getElementById("piecha...
asked by 14.01.2016 / 14:34
2
answers

Enable and disable function in jquery

I need to disable a function in jquery, for example, when I click on a div, a function that I set will no longer be executed, just when I click on another div it works again. The function loads when the site loads. I need when I click on a div t...
asked by 12.01.2016 / 17:57
1
answer

FOR with getJSON file URL

I need to make a FOR with getJSON file. How is the form correct? selectOcorrencias = $.getJSON("http://izicondominios.com.br/appOperacoes.php?operacao=selectOcorrencias&condominioID=2"); for (seOcor in selectOcorrencias){...
asked by 20.12.2015 / 21:40