Questions tagged as 'javascript'

2
answers

How do I make a mask for an input? [duplicate]

I'm trying to put CPF mask in a input , I've already seen several answers here and none worked, I tried to use mask on itself input , on jQuery and none worked. I use the Framework Materialize . Is this what is retur...
asked by 19.04.2017 / 16:09
3
answers

Get font size in HTML

I need to get the information from the font that is set up in the HTML tag with JQuery. I know that to get the size of the font-size just use: css: p {font-size: 12px;} JS: var tamanho = $("p").css('font-size'); The question is,...
asked by 06.10.2017 / 20:39
2
answers

Why use AngularJS?

I've been researching a lot, but I can not understand why I use AngularJS, since I use pages .php so the bank returns, CRUD and etc. I deal directly in the .php pages, bank records lists, insert and such things. Where and how ca...
asked by 18.04.2016 / 02:26
3
answers

Methods with the same name but with different number of parameters [duplicate]

In C # or Java in a class I can define methods with the same name but with different variables, like this: //em C# public class Classe { public String teste(String hello, String world){ return hello + world; } public Str...
asked by 08.04.2016 / 05:16
2
answers

Function discovers greater value among JavaScript variables

I have the following form: <body> <form name="questao1" method="post" onsubmit="sendToDB();"> <br><input type="checkbox" name="Q1[]" value="Enfermagem" onclick="getPontos(1)"> Garantir a saúde das pessoas...
asked by 03.12.2016 / 21:10
3
answers

Problem marking all checkboxes

insira o código aqui How do I proceed to mark the input's checkbox? It's just unchecking. Here are the codes for help: HTML <div class="col-md-11"> <div style="text-align: right;" class="checkbox"> <label><input...
asked by 17.02.2017 / 17:52
3
answers

Access value of a property using a String

Suppose I have the following object: var pessoa = { nome: "João", animais: { cachorro: "Rex", gato: "Pipoca", } } I need a function to do something like this: var gatoDoJoao = pessoa["animais.gato"]; I know...
asked by 28.11.2016 / 02:16
2
answers

dynamic url in ajax

How do I get Ajax to get the current URL? For in it are the values that go to php. If I do it works like this jQuery.ajax({ url: "http://localhost/jogoteocratico/consulta.php?dificuldade=1&rodada=1", type: "GET", dataType: 'j...
asked by 28.01.2017 / 19:51
3
answers

How to lock right mouse button and Block user from viewing Source Code

I would like to know if you can block the right click of the mouse, with the intention of hiding my source code, but if the user is browsing an android, just type view-source: and show the code, I would like to know how to block this comm...
asked by 06.10.2017 / 02:22
4
answers

Given a group of options, one should at least be selected, using jQuery

I have a group of check boxes that allow you to select flags on a search screen. It turns out that if I allow the user to clear all, it is certain that there will be no result. That being said, I wish it would not be allowed to uncheck all check...
asked by 24.02.2014 / 23:14