Questions tagged as 'javascript'

2
answers

Get higher value in an array of numbers

Through given a function, I return an array with numerous random numbers. I need to get the largest number between this array, and for this I ended up finding the Math.max() function. The problem is that I can not get it to read my array...
asked by 25.05.2015 / 21:10
1
answer

Why can not I get value returned by function?

I can not get the value returned from the function, what would be the reason? Could someone help me? In my HTML page I have the following function: function montarCursos(){ var cursos = controller.getCursos(); if(...
asked by 04.06.2015 / 23:20
3
answers

student grades table

Hello, Good morning, I need to do an activity. "Write an HTML document that simulates a note posting screen in an academic system. I did so, but I'm not able to solve the result column ... could anyone help me .. <html lang="pt-br">...
asked by 20.07.2016 / 15:45
1
answer

Get the timezone of a date

I have this date: 2016-02-22T14:55:00.000-03:00 And I would like to take timezone: -03:00 Automatically, without having to perform any regex.     
asked by 21.07.2016 / 16:05
2
answers

Fullpage JS, running on different pages

I'm developing a project in AngularJS and I'm using Fullpage.js for scrolling the pages. So far so good, the problem is this: Because I have internal pages, I also need to use script scrolling on these pages. But even creating the function as...
asked by 20.07.2016 / 14:20
1
answer

Javascript command / copy and paste Jquery (ctrl + c)

I simply want the Javascript command to copy and paste, regardless of whether it works in all browsers. There is a similar question here. But it requires it to work on all browsers. > Cross-browser way to copy text to Clipboard This othe...
asked by 05.07.2015 / 17:14
2
answers

How to send two actions in a single form?

Hello, I have a pay-as-you-go button on my site, but when I click on it, I want it to take the form data and send it to another page (and then put it in the database). So when you click the payroll button it will send two actions. (one for the p...
asked by 06.07.2015 / 15:11
1
answer

Bootstrap Tabs Do not Come Back

I made the tabs in the bootstrap but they go once more to each other after it has been clicked on each one it is not allowed to click again. <div id="tabss" style="text-align: center;"> <li><a href="#bio" data-...
asked by 01.07.2015 / 19:20
2
answers

How to restrict the filling of only numbers in an input with AngularJs?

I noticed that the page has the following code for an input: <div class="form-group required col-md-3"> <label for="area" class="control-label">ÁREA(ha):</label> <input id="area" type="text" class="form-control" da...
asked by 26.10.2016 / 15:26
1
answer

How to enumerate page divs with jquery?

I would like to list all divs with spans of id="position" to simulate a rating. Ex: <div id="conteudo"> <div id="time"><span id="posicao">1.</span> Nome1</div> <div id="time"><span id="posicao"...
asked by 10.05.2015 / 02:45