Questions tagged as 'javascript'

2
answers

Angular Controller does not render in my Index

I can not render a script on my _Layout page. I put it in the _Layout, next to the Bundles declarations and in the Chrome debug, the Aba Network comes with 304 status. I placed it at the top of the page (_Layout) and it also did not work. I remo...
asked by 05.07.2016 / 21:36
2
answers

Jquery Show does not work in td [closed]

I have the following code snippet: $(".item2").hide(); $("#show").chick(function(){ $(".item2").show(); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><tableborder="1"&g...
asked by 12.04.2016 / 22:55
3
answers

Compare two numbers and get the largest

Hello everyone, I'm creating this script to check the largest number and apply it as a discount, but I'm having trouble identifying the number greater and make the calculation. The question is how to get the values with the comma and return...
asked by 30.06.2016 / 19:07
3
answers

hiding input component when selecting a value in the select field

I have a select component that brings the countries of the database <div class="form-group col-md-4"> <label>País *:</label> <select required="required" id="selecionaPais" ng-model="pessoasEnderecos.pais.idPa...
asked by 09.11.2017 / 12:23
2
answers

How to make a slider footer running the site partners?

Well, I've seen this on some websites until I looked for an example on the internet but I did not find it so I'll ask for help here. I've seen this on some sites and now I need to implement a footer in slider running the site partners, if...
asked by 10.11.2017 / 13:56
2
answers

Why is NaN returning?

I'm stuck in an exercise that I can not break free, I'd like to know why NaN is returning, I believe it's giving some trouble in the "draw" function, but I can not see which one. var mostraBR = function(frase){ document.write(frase...
asked by 27.09.2017 / 16:30
3
answers

Convert scientific notation to decimal

How can I convert a number in scientific notation like 2.6274846602703e-6 to a decimal number using only javascript?     
asked by 01.11.2017 / 15:17
1
answer

TypeError: $ http is not a function

Script: app = angular.module("app",[]); app.controller("controlador", ["$scope", function($scope, $http){ $scope.items = []; $scope.submitForm = function() { // Posting data to php file $http({ method : 'POST',...
asked by 04.01.2017 / 16:08
3
answers

How to create HTML elements with JavaScript?

I have the following code JSFiddle It creates a div that gives the information to insert and when calling the context menu with the direct button opens a box to insert an image. My question is: In part: <div class="div-te...
asked by 21.09.2016 / 21:53
2
answers

Input alert if given entered is invalid

Suppose there is an input that receives a phone number. If the mask returns it to be invalid, how to insert a warning (html and css) in the input to tell the user that the data is invalid? I do not have a lot of interaction with JS, I just got...
asked by 14.12.2016 / 15:41