Questions tagged as 'javascript'

2
answers

How to use extensive functions in Javascript

In Javascript the primitive types have native functions, as an object of type Number has a function toString() : (1).toString(); // "1" And an array has includes() : [1, 3, 4].includes(1); // true [1, 3, 4].includes(10)...
asked by 28.01.2018 / 22:49
2
answers

Is there any method for me to create page translations with Javascript or Typescript?

I would like to know if there is any method for me to create my own static page translations with Javascript.     
asked by 12.12.2017 / 02:23
2
answers

Retrieve label value from a select HTML

I have the following select: <span class="IWLABEL11CSS" id="IWLABEL7">Órgão: </span> <select name="Distrito" size="1" width="180" class="COMBODISTCSS" id="COMBOFAB" tabindex="1"> <option value="01">Gabinete do Prefe...
asked by 27.12.2017 / 15:18
3
answers

How to put this JS alert to appear when entering the page

Well, I've found this custom alert on a site, and I'm looking forward to putting it on my page, to enter the page, the alert will appear. I could not follow the site statement, because in their example it's about to appear when I click on a...
asked by 10.12.2017 / 19:10
1
answer

Format monetary value with AngularJS

I'm getting the following values <h3 id="valor">Valor Mensalidade: R${{curso_se.preco_curso}}</h3> <h1 style="color:green;">PrimeiraMensalidade:R${{curso_se.preco_matricula}}</h1> But they are coming with dot...
asked by 20.12.2017 / 18:23
3
answers

Because my load does not load after submit

I have a basic form, and wanted to change the contents of the div after clicking on the submit form, when I run without the submit works, put with the submit does not work <!DOCTYPE html> <html> <head> <title>Page Title...
asked by 30.11.2017 / 16:30
5
answers

How to display DIV if the radio is dialed?

I have the following code: <form> <input type="radio" id="div1" name="consulta[]" value="1">Opção 1 <input type="radio" id="div2" name="consulta[]" value="2">Opção 2 <input type="submit" value="Registrar"&g...
asked by 27.11.2017 / 11:42
1
answer

Use $ _SESSION value in function

I have this Javascript function below, where I want to change the display of a link if the value of a session variable is equal to a certain value. However, this way I did, it is not working, I still get confused when using Javascript...
asked by 05.12.2017 / 14:50
3
answers

Simulate click on Jq or JS

Simulate keystrokes on the keyboard. or how to do a function using this js link In short, I want to make 4 buttons for this game that clicks on the same keyboard link     
asked by 08.12.2017 / 20:04
2
answers

NAN, as a result of a [closed]

I have the following very simple javascript code, however, I would like to know why the return result is NAN? HTML: <label for="pretensaoMes">Pretensão ao Mês</label> <input type="text" id="pretensaoMes"> <label for="diasP...
asked by 02.12.2017 / 21:37