Questions tagged as 'javascript'

0
answers

Error while selecting date focused on bootstrap datepicker

I'm using the bootstrap datepicker version 2.0. // Expected Behavior When you type a day it gets focused on the calendar so when you click on this focus day, you have to fill in the date. // Real behavior When you type a day it gets...
asked by 30.11.2017 / 19:59
1
answer

Radio Button how to configure please help me

I'm doing an application design project here in college for power generator, so we're using Eclipse , in case you'd like to know if(radioButton1.isChecked()){ How do you do when the person clicks this button to issue a response? I await yo...
asked by 28.11.2017 / 02:28
1
answer

change class label according to text

Can anyone help me with this js please? I need the label to change according to the text, if it is "victory" it is success and for "defeat" it gets danger, it follows code below: Note my $ {resultad.statusResults) brings the bank only "Vic...
asked by 27.11.2017 / 19:03
1
answer

Function in JavaScript triggered after clicking div and saving data in the database

I would like to know if you have a javascript function after clicking and dragging a div (better still: after "drop" the div). I want to make a code so that every time I move the div to a table an UPDATE happens (but I can not imagine how). &l...
asked by 10.12.2017 / 04:26
2
answers

How to calculate the total value in a dynamically created table?

I have the following code that creates a table in jquery. The problem is that I wanted to create a subtotal that summed all the values in the total column. But I can not because the table is created dynamically. Any suggestions? Follow the co...
asked by 14.11.2017 / 20:18
1
answer

How can I create an edit button to edit a dynamically created table in javaScript

<!DOCTYPE html> <html> <head> <title>Tabela dinamica</title> <link rel="stylesheet" type="text/css" href="css/css.css"> </head> <body> <form action="" class="tabela"> <la...
asked by 14.11.2017 / 13:15
0
answers

Why TypeError occurs? [duplicate]

Hello, I am studying javascript and doing some testing and would like to understand why this form of call generates error. function test (){ function printA(){ console.log("a"); } } test.printA(); Uncaught TypeError: test.pr...
asked by 14.11.2017 / 15:07
1
answer

Date Comparison in MongoDB and NodeJS

I would like to know how I can compare two dates in MongoDB in NodeJS, I'm using mongodb-native. I need to compare the current date with the date that is saved to the bank, in this case the DATETIME field. To understand better in the example...
asked by 15.11.2017 / 18:38
0
answers

Php or javascript page counter

Well, I'm not able to use CSS @page to do page counting when printing, does anyone know a method? <style> @page{ counter-increment: page; } .totalpag{ content: counter(page); } </style> <span class="totalpag">...
asked by 16.11.2017 / 17:41
1
answer

how to make this banner code 728x90 pixels responsive?

This is the banner code of an affiliate program, size 728x90 pixels. I put it on the blog but on mobile devices the banner is getting cut, could they help? <!-- Começo --> <script type="text/javascript" language="javascript"> l...
asked by 15.11.2017 / 20:28