Questions tagged as 'javascript'

1
answer

Simulate Angular Binding with Pure JavaScript

Is it possible to simulate Angular data binding in pure javascript? Example: <!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script><body><di...
asked by 14.10.2018 / 21:39
1
answer

I am trying to write a code in JS to test the value of "Very Good" to "bad" in IQA (Air Quality Index)

The task is to measure whether the IQA is good or bad. IQA is a measure of the air quality index. This measurement is made in conjunction with the measurement of two gases: O3, PM10. So you have a table to keep track of if the index is good or b...
asked by 15.10.2018 / 20:04
4
answers

Limit Input Value

Hello, I have an input called spent, and the value you entered can not be greater than 1,000,00 , if greater than 1,000,00 a modal appears on the screen. Could you help me with how to do this javascript, please?     
asked by 16.10.2018 / 12:45
2
answers

Javascript Error - DataTables

Hello, I have a code that works in dataTables on a page, so I took the template and the only changes I made was renaming the js , renaming the function $ () The rest left the same in the case the structure, I only know the basics of js and came...
asked by 16.10.2018 / 14:30
1
answer

Filter jquery list with checkbox

I have this function that does the filtering of a table, according to the selected field selected and what was typed in the input, and it works. function myFunction2() { var input, filter, table, tr, td, i, filtro; input = document.getEl...
asked by 16.10.2018 / 14:18
2
answers

How to select options from a select populated dynamically by vue.js?

I have a select in a form, and the items in this select are populated dynamically by vue.js. My problem is that when I open a saved database in the database for editing on this form, I need to have some items selected according to what was sa...
asked by 16.10.2018 / 07:44
1
answer

Loading script.js (external) using DOMContentLoaded?

I'll introduce my test code for a better understanding. index.php <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Teste</...
asked by 03.09.2018 / 21:51
1
answer

linked datepicker with Jquery

I have a form with a date period ('Start date' and 'End date'). The start date can not be less than the end date and the end date can not be less than the start date. These inputs are using the datequicker of the JQuery UI (JQueryUI 1.11.0 and J...
asked by 03.09.2018 / 20:27
1
answer

JavaScript Menu GetId

I have a menu that has a hoverline effect ("a line that runs down the clicked element!") with JavaScript, however it is created using getId by pulling the ID of the elements. The challenge is to duplicate the menu keeping the 'hoverline' effe...
asked by 02.09.2018 / 07:06
2
answers

Problem integrating the Jquery, bootstrap and Popper.Js scripts in angle 6

I have a problem integrating the bootstrap.js, popper.js, and jquery.js scripts into my Angular project. I've already made a few attempts, but nothing has resolved so far. My scripts are being merged as follows: "styles": [ "....
asked by 01.09.2018 / 20:06