Questions tagged as 'javascript'

1
answer

How to clear an input when clicked?

I have a form and I want the page to appear in the " here" field and when the user clicks to type, I want this sentence to add up! It's possible ? How do you do it?     
asked by 05.09.2017 / 18:12
3
answers

Javascript remove () does not work

See the script below. Why does not remove() click? I recently posted on this link: post something similar, but in the other case, the problem was because the button was inside a form, but this time there is no form on the page I already...
asked by 26.08.2017 / 00:56
1
answer

xmlhttp is not defined

I'm having some problems while performing an ajax request by javascript, however, it does appear that the variable xmlhttp has not been defined, even though I set it before the function and before using it. How to solve? var xmlhttp; fu...
asked by 10.01.2018 / 12:57
2
answers

In what I'm missing on this Form that Calculates IMC in JavaScript

<script type="text/javascript"> function calcula_imc(){ var altura = document.imcForm.altura.value; var peso = document.imcForm.peso.value; var quadrado = (altura*altura); var calculo = (peso/qua...
asked by 14.09.2017 / 01:07
2
answers

Angular: Controller can not find the Model

On my main page it shows me the error: Uncaught ReferenceError: Insidetv is not defined , that is, the Controller is not finding the Model file. But if I put the two in the same file it works perfectly. On the main page you are firs...
asked by 16.01.2018 / 14:46
4
answers

Show table on page after clicking a button

I have the following table: <table width="100%" class="table table-bordered table-hover table-responsive table-striped" id="empenho_solicitante"> <thead> <tr> <th colspan="5"> +---------------------------------...
asked by 14.12.2017 / 20:12
1
answer

Error inserting Data with AngularJS

I'm finding errors when entering data with AngularJS AngularCode:varmyapp=angular.module('myapp',[]);myapp.controller('productController',function($scope,$http){//listarprodutos$http.get("customers_mysql.php").then(function (response) {$scop...
asked by 20.07.2017 / 19:36
3
answers

Read content input [closed]

I'm trying to read the text inside a input field, but it's not working, what could be wrong? My code: <input type="text" id=-"campo-de-busca" onKeyPress="teclaPressionada()" placeholder="Nome"> function teclaPressionad...
asked by 07.08.2017 / 14:50
2
answers

Required field message with jQuery

People I did a validation that when the user does not fill the input my button is disabled more wanted to display a message to inform the user that the field should be filled it is possible to do this if yes they could help me follow my c...
asked by 08.08.2017 / 14:52
1
answer

Error in document.getElementById () in Brackets [closed]

You're giving this error in the image when I use "document". Does anybody know how to solve this? I already searched the stack right here and found nothing that would help me. Detail, I'm using the Brackets.     
asked by 25.11.2017 / 02:59